mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-13 13:37:36 -08:00
verbose incrementation
removed un-used variables changed switch case to increase verbose level as loglevel increases captured unset loglevel to default to highest verbose log level
This commit is contained in:
@@ -53,9 +53,10 @@ void ServerLogger::logMessage(QString message, void *caller)
|
||||
|
||||
//filter out all log entries based on loglevel value in configuration file
|
||||
QSettings *settings = new QSettings("servatrice.ini", QSettings::IniFormat);
|
||||
int found = 0; int capture = 0; int loglevel = 0; list<string> lst_str;
|
||||
loglevel = settings->value("server/loglevel").toInt();
|
||||
|
||||
int capture = 0; list<string> lst_str;
|
||||
int loglevel = settings->value("server/loglevel").toInt();
|
||||
if (!loglevel)
|
||||
loglevel = 999;
|
||||
|
||||
switch (loglevel)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user