diff options
-rw-r--r-- | src/game-server/main-game.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index a654d3d2..b54e3821 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. |