summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-11 18:26:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-11 18:26:01 +0300
commit47a1aa9870c5187b1f5417bae8485e20e08f962d (patch)
treecd33d28091c8e0d8fda71a95d7be1e2bacfea41b
parentdb084a1b2fc7f73b38375c4e2ab5398c19a5d712 (diff)
downloadplus-47a1aa9870c5187b1f5417bae8485e20e08f962d.tar.gz
plus-47a1aa9870c5187b1f5417bae8485e20e08f962d.tar.bz2
plus-47a1aa9870c5187b1f5417bae8485e20e08f962d.tar.xz
plus-47a1aa9870c5187b1f5417bae8485e20e08f962d.zip
Add assert logging in configuration.cpp
-rw-r--r--src/configuration.cpp32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index e035ae80f..fd15fec84 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -447,8 +447,10 @@ int Configuration::getIntValue(const std::string &key) const
}
else
{
- logger->log("%s: No integer value in registry for key %s",
- mConfigPath.c_str(), key.c_str());
+ logger->assertLog(
+ "%s: No integer value in registry for key %s",
+ mConfigPath.c_str(),
+ key.c_str());
}
}
}
@@ -475,8 +477,9 @@ int Configuration::resetIntValue(const std::string &key)
}
else
{
- logger->log("%s: No integer value in registry for key %s",
- mConfigPath.c_str(), key.c_str());
+ logger->assertLog("%s: No integer value in registry for key %s",
+ mConfigPath.c_str(),
+ key.c_str());
}
}
setValue(key, defaultValue);
@@ -521,8 +524,9 @@ std::string Configuration::getStringValue(const std::string &key) const
}
else
{
- logger->log("%s: No string value in registry for key %s",
- mConfigPath.c_str(), key.c_str());
+ logger->assertLog("%s: No string value in registry for key %s",
+ mConfigPath.c_str(),
+ key.c_str());
}
}
}
@@ -579,8 +583,9 @@ float Configuration::getFloatValue(const std::string &key) const
}
else
{
- logger->log("%s: No float value in registry for key %s",
- mConfigPath.c_str(), key.c_str());
+ logger->assertLog("%s: No float value in registry for key %s",
+ mConfigPath.c_str(),
+ key.c_str());
}
}
}
@@ -648,8 +653,10 @@ bool Configuration::getBoolValue(const std::string &key) const
}
else
{
- logger->log("%s: No boolean value in registry for key %s",
- mConfigPath.c_str(), key.c_str());
+ logger->assertLog(
+ "%s: No boolean value in registry for key %s",
+ mConfigPath.c_str(),
+ key.c_str());
}
}
}
@@ -678,8 +685,9 @@ bool Configuration::resetBoolValue(const std::string &key)
}
else
{
- logger->log("%s: No boolean value in registry for key %s",
- mConfigPath.c_str(), key.c_str());
+ logger->assertLog("%s: No boolean value in registry for key %s",
+ mConfigPath.c_str(),
+ key.c_str());
}
}