Skip to content

Commit c38d4f3

Browse files
authored
Merge pull request #10005 from nextcloud/backport/9975/stable-4.0
[stable-4.0] fix logger for stdout
2 parents 5f43382 + be9f5f1 commit c38d4f3

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)