Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
84a5117b
Commit
84a5117b
authored
Nov 11, 2014
by
woogerboy21
Browse files
Default logging to enable with no config file
If no configuration file is found, default the logger to logging enabled.
parent
277c050d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/server_logger.cpp
View file @
84a5117b
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment