Commit 063fbce9 authored by Micha Mueller's avatar Micha Mueller
Browse files

Minor fix and improvement to parsing of global config file

parent fb67f591
......@@ -58,13 +58,13 @@ bool Configuration::readGlobal() {
try {
boost::property_tree::read_info(globalConfig, cfg);
} catch (boost::property_tree::info_parser_error& e) {
LOG(error) << "global.conf not found! Please make sure the config-path is correct.";
LOG(error) << "Error when reading global.conf: " << e.what();
return false;
}
//read global variables
BOOST_FOREACH(boost::property_tree::iptree::value_type &global, cfg.get_child("global")) {
if (boost::iequals(global.first, "restHost")) {
if (boost::iequals(global.first, "restAddr")) {
_global.restHost = global.second.data();
size_t pos = _global.restHost.find(":");
if (pos != string::npos) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment