mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Merge pull request #5769 from nextcloud/bugfix/logLessVerbose
Bugfix/log less verbose
This commit is contained in:
commit
ec302c899a
3 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue