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/unitsdb.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/resources/db/unitsdb.cpp') diff --git a/src/resources/db/unitsdb.cpp b/src/resources/db/unitsdb.cpp index bf498411b..ab42ba04c 100644 --- a/src/resources/db/unitsdb.cpp +++ b/src/resources/db/unitsdb.cpp @@ -69,8 +69,9 @@ static std::string formatUnit(const int value, static std::string splitNumber(std::string str, const std::string &separator); -void UnitsDb::loadUnits() +void UnitsDb::load() { + logger->log1("Initializing unit database..."); { // Setup default weight UnitDescription ud; @@ -115,6 +116,12 @@ void UnitsDb::loadUnits() loadXmlDir("unitsPatchDir", loadXmlFile); } +void UnitsDb::unload() +{ + logger->log1("Unloading unit database..."); + mCurrencies.clear(); +} + static UnitDescription loadUnit(XmlNodePtr node) { UnitDescription ud; -- cgit v1.2.3-70-g09d2