FIX: warning in usage of syslog(3)
This commit is contained in:
parent
53bd14e419
commit
f01b634ae3
|
@ -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;
|
||||
if(false==cfg.getBackground())
|
||||
cout << message << endl;
|
||||
syslog(sloglevel,message.c_str());
|
||||
syslog(sloglevel, "%s", message.c_str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue