diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 18b01f6c2df7f..d464713831810 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -608,6 +608,12 @@ void Application::setupLogging() logger->setLogExpire(_logExpire > 0 ? _logExpire : ConfigFile().logExpire()); logger->setLogFlush(_logFlush || ConfigFile().logFlush()); logger->setLogDebug(_logDebug || ConfigFile().logDebug()); + +#if defined(QT_DEBUG) + logger->setLogDebug(true); + logger->setLogFlush(true); +#endif + if (!logger->isLoggingToFile() && ConfigFile().automaticLogDir()) { logger->setupTemporaryFolderLogDir(); } 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()