diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 20:12:51 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 20:12:51 +0000 |
commit | 593e65eef0d43f2ff61dc1b4f3160c0a16b5f015 (patch) | |
tree | 8e0a1ca0c73778f0e4d71f4da4d5c47f272915b9 /src/configuration.cpp | |
parent | f96ca90ba90da3175be96ff7ed34efb78ea5dfed (diff) | |
download | manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.gz manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.bz2 manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.xz manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.zip |
Simplified handling of verbosity levels. Optimized code by generating only needed messages.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index c2a84b23..277a37e2 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -61,7 +61,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() << ")", 0); + LOG_WARN("Warning: No configuration file (" << filename.c_str() << ")"); return; } @@ -126,7 +126,7 @@ void Configuration::write() void Configuration::setValue(const std::string &key, std::string value) { - LOG_DEBUG("Configuration::setValue(" << key << ", " << value << ")", 2); + LOG_DEBUG("Configuration::setValue(" << key << ", " << value << ")"); options[key] = value; |