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: v9.0.3~82^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d2ca37d3b8f067d0cf0f7cfea24964ac181115d;p=ceph.git mon/LogMonitor: use the configured facility if log to syslog Signed-off-by: Kefu Chai --- diff --git a/src/mon/LogMonitor.cc b/src/mon/LogMonitor.cc index 67b29b986e5d..b364874d4975 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: "