Skip to content

Commit

Permalink
Merge pull request #7418 from nextcloud/bugfix/change-log-settings-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
claucambra authored Oct 31, 2024
2 parents eb50768 + b39f4aa commit f6b6e23
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/libsync/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -249,8 +248,6 @@ void Logger::disableTemporaryFolderLogDir()

enterNextLogFile("nextcloud.log", LogType::Log);
setLogDir(QString());
setLogDebug(false);
setLogFile(QString());
_temporaryFolderLogDir = false;
}

Expand Down

0 comments on commit f6b6e23

Please sign in to comment.