Skip to content

Commit be9f5f1

Browse files
an-dr-eas-kbackportbot[bot]
authored andcommitted
fix logger for stdout
Signed-off-by: AndreasK <andreas.kirschner@gmail.com>
1 parent 5f43382 commit be9f5f1

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)