Commit 12bc81b9 authored by Jonas Fonseca's avatar Jonas Fonseca

[#960] Fix logger warnings

parent d91d9792
......@@ -87,12 +87,12 @@ void log(const int level, const char* format, ...)
message = buffer;
message = prefix + message;
syslog(level, message.c_str());
syslog(level, "%s", message.c_str());
if(consoleLog)
{
message = color_prefix + message + END_COLOR + "\n";
fprintf(stderr, message.c_str());
fprintf(stderr, "%s", message.c_str());
}
}
......
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