]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/LogMonitor: use the configured facility if log to syslog 7648/head
authorKefu Chai <kchai@redhat.com>
Mon, 6 Jul 2015 04:17:21 +0000 (12:17 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 15 Feb 2016 10:02:12 +0000 (18:02 +0800)
Fixes: #13748
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4d2ca37d3b8f067d0cf0f7cfea24964ac181115d)

src/mon/LogMonitor.cc

index aa1f674e83a222c0b6854d5993a043e34b1a713a..a9f2ceb5ca5729132b6bd71add1ce4b56aa57dee 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: "