From: Kefu Chai Date: Mon, 6 Jul 2015 04:17:21 +0000 (+0800) Subject: mon/LogMonitor: use the configured facility if log to syslog X-Git-Tag: v0.94.7~30^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14b5feab80f07b4ed2b8f6d77ea1fa920e98be05;p=ceph.git mon/LogMonitor: use the configured facility if log to syslog Fixes: #13748 Signed-off-by: Kefu Chai (cherry picked from commit 4d2ca37d3b8f067d0cf0f7cfea24964ac181115d) --- diff --git a/src/mon/LogMonitor.cc b/src/mon/LogMonitor.cc index aa1f674e83a2..a9f2ceb5ca57 100644 --- a/src/mon/LogMonitor.cc +++ b/src/mon/LogMonitor.cc @@ -138,7 +138,7 @@ void LogMonitor::update_from_paxos(bool *need_bootstrap) if (channels.do_log_to_syslog(channel)) { string level = channels.get_level(channel); - string facility = channels.get_facility(facility); + string facility = channels.get_facility(channel); if (level.empty() || facility.empty()) { derr << __func__ << " unable to log to syslog -- level or facility" << " not defined (level: " << level << ", facility: "