Skip to content

Commit

Permalink
mon/LogMonitor: use the configured facility if log to syslog
Browse files Browse the repository at this point in the history
Fixes: #13748
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 4d2ca37)
  • Loading branch information
tchaikov committed Feb 15, 2016
1 parent 7abb6ae commit 14b5fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/LogMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down

0 comments on commit 14b5fea

Please sign in to comment.