mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Ensure we are closing current log file before entering next log file
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
38ae92beff
commit
711359ef43
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString
|
|||
#endif
|
||||
{
|
||||
if (_logFile.size() >= MaxLogSizeBytes) {
|
||||
close();
|
||||
enterNextLogFile();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue