diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 86f482fffe490..5e885d7afebe4 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -234,10 +234,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; } @@ -249,8 +248,6 @@ void Logger::disableTemporaryFolderLogDir() enterNextLogFile("nextcloud.log", LogType::Log); setLogDir(QString()); - setLogDebug(false); - setLogFile(QString()); _temporaryFolderLogDir = false; }