From de73e67e830c15e6b623ba03eda88f9faacac40c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Aug 2017 22:43:54 +0300 Subject: Add missing load / unload databases logging. --- src/resources/db/avatardb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/db/avatardb.cpp') 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; -- cgit v1.2.3-70-g09d2