#include <boost/algorithm/string.hpp>
+#include "Log.hh"
#include "Settings.hh"
if (home)
{
- boost::replace_first(path, "$HOME", home);
+ boost::replace_all(path, "$HOME", home);
}
try
}
catch (Deserializer::Exception e)
{
- std::cerr << "Cannot load settings from " << *it <<
- " because an exception was thrown: " << e.what() << std::endl;
+ logWarning("cannot load settings from %s because an exception was"
+ "thrown: %s", (*it).c_str(), e.what());
}
}
}