From 4d0b9a1bbbabe7b27279a7b6e0a45f5b0d920c66 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Mon, 7 Dec 2015 11:31:28 +1000 Subject: [PATCH] log: Log.cc: Assign LOG_DEBUG priority to syslog calls Fixes: #13993 Signed-off-by: Brad Hubbard (cherry picked from commit 8e93f3f45db681f82633ca695a7dc4e7bd030584) --- src/log/Log.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log/Log.cc b/src/log/Log.cc index ce974946139c..963d30124e46 100644 --- a/src/log/Log.cc +++ b/src/log/Log.cc @@ -237,7 +237,7 @@ void Log::_flush(EntryQueue *t, EntryQueue *requeue, bool crash) } if (do_syslog) { - syslog(LOG_USER, "%s%s", buf, s.c_str()); + syslog(LOG_USER|LOG_DEBUG, "%s%s", buf, s.c_str()); } if (do_stderr) { @@ -259,7 +259,7 @@ void Log::_log_message(const char *s, bool crash) cerr << "problem writing to " << m_log_file << ": " << cpp_strerror(r) << std::endl; } if ((crash ? m_syslog_crash : m_syslog_log) >= 0) { - syslog(LOG_USER, "%s", s); + syslog(LOG_USER|LOG_DEBUG, "%s", s); } if ((crash ? m_stderr_crash : m_stderr_log) >= 0) { -- 2.47.3