1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Logging: always print version of client and server in the begining

This commit is contained in:
Arseniy Shestakov 2016-10-27 17:14:20 +03:00
parent cb3d6a24e7
commit 15b4774076
2 changed files with 2 additions and 1 deletions

View File

@ -300,6 +300,7 @@ int main(int argc, char** argv)
const bfs::path logPath = VCMIDirs::get().userCachePath() / "VCMI_Client_log.txt";
CBasicLogConfigurator logConfig(logPath, console);
logConfig.configureDefault();
logGlobal->infoStream() << NAME;
logGlobal->infoStream() << "Creating console and configuring logger: " << pomtime.getDiff();
logGlobal->infoStream() << "The log file will be saved to " << logPath;
@ -342,7 +343,6 @@ int main(int argc, char** argv)
conf.init();
logGlobal->infoStream() << "Loading settings: " << pomtime.getDiff();
logGlobal->infoStream() << NAME;
srand ( time(nullptr) );

View File

@ -577,6 +577,7 @@ int main(int argc, char** argv)
console = new CConsoleHandler;
CBasicLogConfigurator logConfig(VCMIDirs::get().userCachePath() / "VCMI_Server_log.txt", console);
logConfig.configureDefault();
logGlobal->info(NAME);
handleCommandOptions(argc, argv);
if(cmdLineOptions.count("port"))