Add support for verbose logging.

This commit is contained in:
2020-08-22 19:39:13 +02:00
parent 43f2def80b
commit 35c622d8a2
5 changed files with 16 additions and 1 deletions

View File

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