Browse Source

FIX: warning in usage of syslog(3)

Juan José Gutiérrez de Quevedo Pérez 6 years ago
parent
commit
f01b634ae3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/UnixLogger.cpp

+ 1 - 1
src/UnixLogger.cpp

@@ -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());
   }
 }