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/itemoptiondb.cpp | |
parent | 653f89fa3b236103670796af4b76a23e8ae84248 (diff) | |
download | manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2 manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz manaverse-de73e67e830c15e6b623ba03eda88f9faacac40c.zip |
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/itemoptiondb.cpp')
-rw-r--r-- | src/resources/db/itemoptiondb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/itemoptiondb.cpp b/src/resources/db/itemoptiondb.cpp index 2f7fc1ccd..b138e7521 100644 --- a/src/resources/db/itemoptiondb.cpp +++ b/src/resources/db/itemoptiondb.cpp @@ -42,6 +42,7 @@ void ItemOptionDb::load() if (mLoaded) unload(); + logger->log1("Initializing item options database..."); loadXmlFile(paths.getStringValue("itemOptionsFile"), SkipError_false); loadXmlFile(paths.getStringValue("itemOptionsPatchFile"), SkipError_true); loadXmlDir("itemOptionsPatchDir", loadXmlFile); @@ -136,6 +137,7 @@ void ItemOptionDb::loadXmlFile(const std::string &fileName, void ItemOptionDb::unload() { + logger->log1("Unloading item options database..."); mOptions.clear(); mLoaded = false; } |