From 4d2ca37d3b8f067d0cf0f7cfea24964ac181115d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 6 Jul 2015 12:17:21 +0800 Subject: [PATCH] mon/LogMonitor: use the configured facility if log to syslog Signed-off-by: Kefu Chai --- src/mon/LogMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/LogMonitor.cc b/src/mon/LogMonitor.cc index 67b29b986e5..b364874d497 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: " -- 2.47.3