From: Joao Eduardo Luis Date: Fri, 18 Jul 2014 14:37:34 +0000 (+0100) Subject: common: LogEntry: refactor how we output to syslog X-Git-Tag: v0.86~167^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=59dac4275ede292e7a48aa5ad7b784ee37049fc8;p=ceph.git common: LogEntry: refactor how we output to syslog Signed-off-by: Joao Eduardo Luis --- diff --git a/src/common/LogEntry.cc b/src/common/LogEntry.cc index 9d6858ea2163..b3f2c2d0424b 100644 --- a/src/common/LogEntry.cc +++ b/src/common/LogEntry.cc @@ -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()); } }