tweaked debug logging in i2pd_qt

This commit is contained in:
kote 2019-08-27 17:10:53 +08:00
parent e42efec220
commit b5aa67b491
2 changed files with 11 additions and 3 deletions

View file

@ -18,7 +18,7 @@ namespace logviewer {
QString Worker::pollAndShootATimerForInfiniteRetries() {
std::shared_ptr<std::iostream> logStream=logViewerManager.getLogStream();
assert(logStream!=nullptr);
if(!logStream)return "";
std::streamsize MAX_SZ=64*1024;
char*buf=(char*)malloc(MAX_SZ*sizeof(char));
if(buf==nullptr)return "";