]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/LogMonitor: use the configured facility if log to syslog 5148/head
authorKefu Chai <kchai@redhat.com>
Mon, 6 Jul 2015 04:17:21 +0000 (12:17 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 6 Jul 2015 04:17:51 +0000 (12:17 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/LogMonitor.cc

index 67b29b986e5d3c53a90556a4d897552a0d8baa25..b364874d4975fd3d408b42a69393035083e1e46b 100644 (file)
@@ -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: "