mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +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
|
#endif
|
||||||
{
|
{
|
||||||
if (_logFile.size() >= MaxLogSizeBytes) {
|
if (_logFile.size() >= MaxLogSizeBytes) {
|
||||||
|
close();
|
||||||
enterNextLogFile();
|
enterNextLogFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue