summaryrefslogtreecommitdiffstats
path: root/src/game-server/main-game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-16 01:49:10 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-16 01:49:10 +0200
commit39d83981891c963c284d1cabf3659ebf20c1930d (patch)
tree1e472b40e81132ccd4648945f911ecb8b003404c /src/game-server/main-game.cpp
parentf529913ebe287cdd33be5ddafd4a8452f41e9383 (diff)
downloadmanaserv-39d83981891c963c284d1cabf3659ebf20c1930d.tar.gz
manaserv-39d83981891c963c284d1cabf3659ebf20c1930d.tar.xz
manaserv-39d83981891c963c284d1cabf3659ebf20c1930d.zip
Set log verbosity earlier in game server to actually help debug.
Before that, all the loading information were kept at info level. Trivial.
Diffstat (limited to 'src/game-server/main-game.cpp')
-rw-r--r--src/game-server/main-game.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp
index a654d3d..b54e382 100644
--- a/src/game-server/main-game.cpp
+++ b/src/game-server/main-game.cpp
@@ -354,6 +354,12 @@ int main(int argc, char *argv[])
initializeConfiguration(options.configPath);
+ if (!options.verbosityChanged)
+ options.verbosity = static_cast<Logger::Level>(
+ Configuration::getValue("log_gameServerLogLevel",
+ options.verbosity) );
+ Logger::setVerbosity(options.verbosity);
+
// General initialization
initializeServer();
@@ -366,12 +372,6 @@ int main(int argc, char *argv[])
<< ", " << "Enet version " << ENET_VERSION_MAJOR << "."
<< ENET_VERSION_MINOR << "." << ENET_VERSION_PATCH);
- if (!options.verbosityChanged)
- options.verbosity = static_cast<Logger::Level>(
- Configuration::getValue("log_gameServerLogLevel",
- options.verbosity) );
- Logger::setVerbosity(options.verbosity);
-
// When the gameListenToClientPort is set, we use it.
// Otherwise, we use the accountListenToClientPort + 3 if the option is set.
// If neither, the DEFAULT_SERVER_PORT + 3 is used.