From 43be5d3a218ed204aae86cb0ef607d1cf7a1169c Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 12 Sep 2023 17:23:46 +0200 Subject: [PATCH] enable debug logs in debug builds Signed-off-by: Matthieu Gallien --- src/libsync/logger.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 7a050a1036084..6af8c84d25d0e 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -85,6 +85,10 @@ Logger::Logger(QObject *parent) Logger::instance()->doLog(type, ctx, message); }); #endif +#if defined(QT_DEBUG) + setLogDebug(true); + setLogFlush(true); +#endif } Logger::~Logger()