diff --git a/src/gui/application.h b/src/gui/application.h index 664dae6a1b..bb9f97bef0 100644 --- a/src/gui/application.h +++ b/src/gui/application.h @@ -140,7 +140,7 @@ private: QString _logDir; int _logExpire = 0; bool _logFlush = false; - bool _logDebug = true; + bool _logDebug = false; bool _userTriggeredConnect = false; bool _debugMode = false; bool _backgroundMode = false; diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp index 8f03fad456..c6447ffe52 100644 --- a/src/libsync/configfile.cpp +++ b/src/libsync/configfile.cpp @@ -1048,7 +1048,7 @@ void ConfigFile::setLogDir(const QString &dir) bool ConfigFile::logDebug() const { QSettings settings(configFile(), QSettings::IniFormat); - return settings.value(QLatin1String(logDebugC), true).toBool(); + return settings.value(QLatin1String(logDebugC), false).toBool(); } void ConfigFile::setLogDebug(bool enabled) diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 2bed41214c..657242a7c3 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -36,7 +36,7 @@ namespace { constexpr int CrashLogSize = 20; -constexpr int MaxLogSizeBytes = 1024 * 512; +constexpr int MaxLogSizeBytes = 1024 * 1024 * 3; static bool compressLog(const QString &originalName, const QString &targetName) { @@ -142,9 +142,6 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString msgW.append(L"\n"); OutputDebugString(msgW.c_str()); } -#elif defined(QT_DEBUG) - QTextStream cout(stdout, QIODevice::WriteOnly); - cout << msg << endl; #endif { QMutexLocker lock(&_mutex);