From 82179b0fe9729eea106ebfdfc0c8db07c19bee86 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 16 Feb 2017 20:21:38 +0300 Subject: Show log path in console at start. Also fix configuration path logging. --- src/client.cpp | 1 + src/configmanager.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index ae5daa3cb..5aae6960c 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -299,6 +299,7 @@ void Client::gameInit() settings.logFileName = settings.options.logFileName; else settings.logFileName = settings.localDataDir + "/manaplus.log"; + logger->log("Log file: " + settings.logFileName); logger->setLogFile(settings.logFileName); #ifdef USE_FUZZER diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 6a2f9f708..7acc8ebf5 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -143,7 +143,7 @@ void ConfigManager::initConfiguration() config.init(configPath); logger->log1("init 3"); config.setDefaultValues(getConfigDefaults()); - logger->log("configPath: " + configPath); + logger->log("configuration file: " + configPath); } } -- cgit v1.2.3-70-g09d2