Safer way to log arbitrary message.

parent 2e9d084b
...@@ -114,7 +114,7 @@ namespace DataStaging { ...@@ -114,7 +114,7 @@ namespace DataStaging {
void Scheduler::log_to_root_logger(Arc::LogLevel level, const std::string& message) { void Scheduler::log_to_root_logger(Arc::LogLevel level, const std::string& message) {
Arc::Logger::getRootLogger().addDestinations(root_destinations); Arc::Logger::getRootLogger().addDestinations(root_destinations);
logger.msg(level, message); logger.msg(level, "%s", message);
Arc::Logger::getRootLogger().removeDestinations(); Arc::Logger::getRootLogger().removeDestinations();
} }
......
Markdown is supported
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