FIX: warning in usage of syslog(3)

This commit is contained in:
Juan José Gutiérrez de Quevedo Pérez 2014-06-29 21:35:03 +02:00
parent 53bd14e419
commit f01b634ae3

View file

@ -48,6 +48,6 @@ void UnixLogger::addMessage(string file,int line,int loglevel,string logmessage)
message=file+":"+Utils::inttostr(line)+" [" + Utils::inttostr(connection_id) + "] " + logmessage; message=file+":"+Utils::inttostr(line)+" [" + Utils::inttostr(connection_id) + "] " + logmessage;
if(false==cfg.getBackground()) if(false==cfg.getBackground())
cout << message << endl; cout << message << endl;
syslog(sloglevel,message.c_str()); syslog(sloglevel, "%s", message.c_str());
} }
} }