Add verbosity levels.

This commit is contained in:
2020-08-23 23:09:31 +02:00
parent 756074cc62
commit e99feb03d5
7 changed files with 41 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
#include "contrib/INIReader.hpp"
// defaults :)
bool settings::VERBOSE = false;
int settings::VERBOSITY = 1;
int settings::LOGINPORT = 8001;
bool settings::LOGINRANDCHARACTERS = false;
@@ -32,7 +32,7 @@ void settings::init() {
return;
}
VERBOSE = reader.GetBoolean("", "verbose", VERBOSE);
VERBOSITY = reader.GetInteger("", "verbosity", VERBOSITY);
LOGINPORT = reader.GetInteger("login", "port", LOGINPORT);
LOGINRANDCHARACTERS = reader.GetBoolean("login", "randomcharacters", LOGINRANDCHARACTERS);
SHARDPORT = reader.GetInteger("shard", "port", SHARDPORT);