diff options
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 703d2c20..5f9caa2d 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -66,7 +66,7 @@ void Configuration::init(const std::string &filename) xmlNodePtr node = xmlDocGetRootElement(doc); if (!node || !xmlStrEqual(node->name, BAD_CAST "configuration")) { - LOG_WARN("Warning: No configuration file (" << filename.c_str() << ")") + LOG_WARN("Warning: No configuration file (" << filename.c_str() << ")", 0) return; } @@ -131,9 +131,8 @@ void Configuration::write() void Configuration::setValue(const std::string &key, std::string value) { -#ifdef __DEBUG - std::cout << "Configuration::setValue(" << key << ", " << value << ")\n"; -#endif + LOG_DEBUG("Configuration::setValue(" << key << ", " << value << ")", 2) + options[key] = value; // Notify listeners |