Skip to content

Commit

Permalink
Merge pull request #7444 from nextcloud/backport/7418/stable-3.13
Browse files Browse the repository at this point in the history
[stable-3.13] Respect the user's debug and expiration settings when changing temporary log dir setting
  • Loading branch information
claucambra authored Nov 3, 2024
2 parents 06ced2c + 4d28212 commit 9fd5f00
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 @@ -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;
}
Expand All @@ -251,8 +250,6 @@ void Logger::disableTemporaryFolderLogDir()

enterNextLogFile();
setLogDir(QString());
setLogDebug(false);
setLogFile(QString());
_temporaryFolderLogDir = false;
}

Expand Down

0 comments on commit 9fd5f00

Please sign in to comment.