summaryrefslogtreecommitdiff
path: root/src/resources/db/textdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-03 22:43:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-04 00:57:58 +0300
commitde73e67e830c15e6b623ba03eda88f9faacac40c (patch)
tree79422e9c944b751cd0c0b8ad6fd37e32ddaaa130 /src/resources/db/textdb.cpp
parent653f89fa3b236103670796af4b76a23e8ae84248 (diff)
downloadmanaplus-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/textdb.cpp')
-rw-r--r--src/resources/db/textdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/textdb.cpp b/src/resources/db/textdb.cpp
index e4d0b9b65..cfd5faf76 100644
--- a/src/resources/db/textdb.cpp
+++ b/src/resources/db/textdb.cpp
@@ -36,6 +36,7 @@ namespace
void TextDb::load()
{
unload();
+ logger->log1("Initializing text database...");
loadXmlFile(paths.getStringValue("textsFile"), SkipError_false);
loadXmlFile(paths.getStringValue("textsPatchFile"), SkipError_true);
loadXmlDir("textsPatchDir", loadXmlFile);
@@ -83,6 +84,7 @@ void TextDb::loadXmlFile(const std::string &fileName,
void TextDb::unload()
{
+ logger->log1("Unloading text database...");
mTexts.clear();
}