summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-12 21:43:23 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-12 21:43:23 +0300
commit0cb2b34eacd0081f82e7d68bbf57149f3549bfc9 (patch)
treefb7c5480f82cdfbadf138ae341c923b17c58da65 /src
parent2128b93673978b66770ec5f55344ffb258f0b868 (diff)
downloadmv-0cb2b34eacd0081f82e7d68bbf57149f3549bfc9.tar.gz
mv-0cb2b34eacd0081f82e7d68bbf57149f3549bfc9.tar.bz2
mv-0cb2b34eacd0081f82e7d68bbf57149f3549bfc9.tar.xz
mv-0cb2b34eacd0081f82e7d68bbf57149f3549bfc9.zip
Add init debug messages.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp2
-rw-r--r--src/configuration.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 78688fa03..7f6e37aa1 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -273,6 +273,7 @@ Client::Client(const Options &options):
logger->setLogFile(mLocalDataDir + std::string("/manaplus.log"));
initConfiguration();
+ logger->log("init 4");
logger->setDebugLog(config.getBoolValue("debugLog"));
storeSafeParameters();
@@ -1573,6 +1574,7 @@ void Client::initConfiguration()
{
fclose(configFile);
config.init(configPath);
+ logger->log("init 3");
config.setDefaultValues(getConfigDefaults());
logger->log("configPath: " + configPath);
}
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 21d9d998f..5dca06b56 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -405,8 +405,10 @@ void Configuration::init(const std::string &filename, bool useResManager)
else
{
mConfigPath = filename;
+ logger->log("init 1");
mDirectory = getRealPath(getFileDir(filename));
}
+ logger->log("init 2");
if (!doc.rootNode())
{