Skip to content

Commit 4427fb5

Browse files
authored
Merge pull request #10004 from nextcloud/backport/9975/stable-33.0
[stable-33.0] fix logger for stdout
2 parents 967f7bf + 2418458 commit 4427fb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libsync/logger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString
130130
{
131131
QMutexLocker lock(&_mutex);
132132

133-
if (linesCounter >= MaxLogLinesCount) {
133+
if (!logFile().isEmpty() && linesCounter >= MaxLogLinesCount) {
134134
linesCounter = 0;
135135
if (_logstream) {
136136
_logstream->flush();

0 commit comments

Comments
 (0)