mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
variable cleanup
removed unused variables changed switch statement to now log more verbose as loglevel number increments captured undefined loglevel to default to most verbose logging
This commit is contained in:
parent
234a68dfd0
commit
39e0c5a887
1 changed files with 4 additions and 3 deletions
|
|
@ -53,9 +53,10 @@ void ServerLogger::logMessage(QString message, void *caller)
|
||||||
|
|
||||||
//filter out all log entries based on loglevel value in configuration file
|
//filter out all log entries based on loglevel value in configuration file
|
||||||
QSettings *settings = new QSettings("servatrice.ini", QSettings::IniFormat);
|
QSettings *settings = new QSettings("servatrice.ini", QSettings::IniFormat);
|
||||||
int found = 0; int capture = 0; int loglevel = 0; list<string> lst_str;
|
int capture = 0; list<string> lst_str;
|
||||||
loglevel = settings->value("server/loglevel").toInt();
|
int loglevel = settings->value("server/loglevel").toInt();
|
||||||
|
if (!loglevel)
|
||||||
|
loglevel = 999;
|
||||||
|
|
||||||
switch (loglevel)
|
switch (loglevel)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue