mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Logging: always print version of client and server in the begining
This commit is contained in:
@ -300,6 +300,7 @@ int main(int argc, char** argv)
|
|||||||
const bfs::path logPath = VCMIDirs::get().userCachePath() / "VCMI_Client_log.txt";
|
const bfs::path logPath = VCMIDirs::get().userCachePath() / "VCMI_Client_log.txt";
|
||||||
CBasicLogConfigurator logConfig(logPath, console);
|
CBasicLogConfigurator logConfig(logPath, console);
|
||||||
logConfig.configureDefault();
|
logConfig.configureDefault();
|
||||||
|
logGlobal->infoStream() << NAME;
|
||||||
logGlobal->infoStream() << "Creating console and configuring logger: " << pomtime.getDiff();
|
logGlobal->infoStream() << "Creating console and configuring logger: " << pomtime.getDiff();
|
||||||
logGlobal->infoStream() << "The log file will be saved to " << logPath;
|
logGlobal->infoStream() << "The log file will be saved to " << logPath;
|
||||||
|
|
||||||
@ -342,7 +343,6 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
conf.init();
|
conf.init();
|
||||||
logGlobal->infoStream() << "Loading settings: " << pomtime.getDiff();
|
logGlobal->infoStream() << "Loading settings: " << pomtime.getDiff();
|
||||||
logGlobal->infoStream() << NAME;
|
|
||||||
|
|
||||||
srand ( time(nullptr) );
|
srand ( time(nullptr) );
|
||||||
|
|
||||||
|
@ -577,6 +577,7 @@ int main(int argc, char** argv)
|
|||||||
console = new CConsoleHandler;
|
console = new CConsoleHandler;
|
||||||
CBasicLogConfigurator logConfig(VCMIDirs::get().userCachePath() / "VCMI_Server_log.txt", console);
|
CBasicLogConfigurator logConfig(VCMIDirs::get().userCachePath() / "VCMI_Server_log.txt", console);
|
||||||
logConfig.configureDefault();
|
logConfig.configureDefault();
|
||||||
|
logGlobal->info(NAME);
|
||||||
|
|
||||||
handleCommandOptions(argc, argv);
|
handleCommandOptions(argc, argv);
|
||||||
if(cmdLineOptions.count("port"))
|
if(cmdLineOptions.count("port"))
|
||||||
|
Reference in New Issue
Block a user