]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: LogEntry: refactor how we output to syslog
authorJoao Eduardo Luis <joao.luis@inktank.com>
Fri, 18 Jul 2014 14:37:34 +0000 (15:37 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 27 Aug 2014 17:21:47 +0000 (18:21 +0100)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/common/LogEntry.cc

index 9d6858ea216395dbcf527b13383fbcbd3db18b56..b3f2c2d0424b5d15301b096834eb0d8744ce683e 100644 (file)
@@ -155,7 +155,10 @@ void LogEntry::log_to_syslog(string level, string facility)
   int l = clog_type_to_syslog_level(prio);
   if (l <= min) {
     int f = string_to_syslog_facility(facility);
-    syslog(l | f, "%s", stringify(*this).c_str());
+    syslog(l | f, "%s %lu : %s",
+        stringify(who).c_str(),
+        seq,
+        msg.c_str());
   }
 }