From: Christian Kamm Date: Tue, 16 Apr 2019 07:18:19 +0000 (+0200) Subject: Log: Start logging immediately when "permanent logs" enabled #7146 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~248 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=076e24f465f27464e06832cbc5934c41e958cc12;p=nextcloud-desktop.git Log: Start logging immediately when "permanent logs" enabled #7146 Previously one would need to wait for the next sync run to create the first log file. --- diff --git a/src/gui/logbrowser.cpp b/src/gui/logbrowser.cpp index 8ad0410e8..d3ab7bad6 100644 --- a/src/gui/logbrowser.cpp +++ b/src/gui/logbrowser.cpp @@ -116,6 +116,7 @@ void LogBrowser::togglePermanentLogging(bool enabled) if (enabled) { if (!logger->isLoggingToFile()) { logger->setupTemporaryFolderLogDir(); + logger->enterNextLogFile(); } } else { logger->disableTemporaryFolderLogDir();