Skip to content

Commit 9381842

Browse files
authored
Merge pull request #9975 from an-dr-eas-k/feature/logger_fix
fix logger for stdout
2 parents ee86ab1 + 9919d76 commit 9381842

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)