Merge pull request #5769 from nextcloud/bugfix/logLessVerbose

Bugfix/log less verbose
This commit is contained in:
Matthieu Gallien 2023-06-07 09:32:40 +02:00 committed by GitHub
commit ec302c899a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View file

@ -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;

View file

@ -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)

View file

@ -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);