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/avatardb.cpp | |
parent | 653f89fa3b236103670796af4b76a23e8ae84248 (diff) | |
download | plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2 plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz plus-de73e67e830c15e6b623ba03eda88f9faacac40c.zip |
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/avatardb.cpp')
-rw-r--r-- | src/resources/db/avatardb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/avatardb.cpp b/src/resources/db/avatardb.cpp index a3abf5fec..4e2fb821d 100644 --- a/src/resources/db/avatardb.cpp +++ b/src/resources/db/avatardb.cpp @@ -46,6 +46,8 @@ void AvatarDB::load() { if (mLoaded) unload(); + + logger->log1("Initializing avatar database..."); loadXmlFile(paths.getStringValue("avatarsFile"), SkipError_false); loadXmlFile(paths.getStringValue("avatarsPatchFile"), SkipError_true); loadXmlDir("avatarsPatchDir", loadXmlFile); @@ -129,6 +131,7 @@ void AvatarDB::loadXmlFile(const std::string &fileName, void AvatarDB::unload() { + logger->log1("Unloading avatar database..."); delete_all(mAvatarInfos); mAvatarInfos.clear(); mLoaded = false; |