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:
parent
cb3d6a24e7
commit
15b4774076
@ -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) );
|
||||
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user