Default logging to enable with no config file
If no configuration file is found, default the logger to logging enabled.
This commit is contained in:
parent
277c050d76
commit
84a5117b4c
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ void ServerLogger::logMessage(QString message, void *caller)
|
|||
callerString = QString::number((qulonglong) caller, 16) + " ";
|
||||
|
||||
//filter out all log entries based on values in configuration file
|
||||
bool shouldWeWriteLog = settingsCache->value("server/writelog").toBool();
|
||||
bool shouldWeWriteLog = settingsCache->value("server/writelog",1).toBool();
|
||||
QString logFilters = settingsCache->value("server/logfilters").toString();
|
||||
QStringList listlogFilters = logFilters.split(",", QString::SkipEmptyParts);
|
||||
bool shouldWeSkipLine = false;
|
||||
|
|
Loading…
Reference in a new issue