diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 2bfaa8aaf6147..4bf15d2229178 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -236,10 +236,9 @@ QString Logger::temporaryFolderLogDirPath() const void Logger::setupTemporaryFolderLogDir() { auto dir = temporaryFolderLogDirPath(); - if (!QDir().mkpath(dir)) + if (!QDir().mkpath(dir)) { return; - setLogDebug(true); - setLogExpire(4 /*hours*/); + } setLogDir(dir); _temporaryFolderLogDir = true; } @@ -251,8 +250,6 @@ void Logger::disableTemporaryFolderLogDir() enterNextLogFile(); setLogDir(QString()); - setLogDebug(false); - setLogFile(QString()); _temporaryFolderLogDir = false; }