diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-03 22:43:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-04 00:57:58 +0300 |
commit | de73e67e830c15e6b623ba03eda88f9faacac40c (patch) | |
tree | 79422e9c944b751cd0c0b8ad6fd37e32ddaaa130 /src/resources/db/groupdb.cpp | |
parent | 653f89fa3b236103670796af4b76a23e8ae84248 (diff) | |
download | manaplus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz manaplus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2 manaplus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz manaplus-de73e67e830c15e6b623ba03eda88f9faacac40c.zip |
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/groupdb.cpp')
-rw-r--r-- | src/resources/db/groupdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/groupdb.cpp b/src/resources/db/groupdb.cpp index 7b499018a..e4c909c9a 100644 --- a/src/resources/db/groupdb.cpp +++ b/src/resources/db/groupdb.cpp @@ -41,6 +41,8 @@ void GroupDb::load() if (mLoaded) unload(); + logger->log1("Initializing group database..."); + loadXmlFile(paths.getStringValue("groupsFile"), SkipError_false); loadXmlFile(paths.getStringValue("groupsPatchFile"), SkipError_true); loadXmlDir("groupsPatchDir", loadXmlFile); @@ -320,6 +322,7 @@ void GroupDb::loadXmlFile(const std::string &fileName, void GroupDb::unload() { + logger->log1("Unloading group database..."); FOR_EACH (GroupInfosIter, it, mGroups) { delete (*it).second; |