From: Brad Hubbard Date: Mon, 7 Dec 2015 01:31:28 +0000 (+1000) Subject: log: Log.cc: Assign LOG_DEBUG priority to syslog calls X-Git-Tag: v10.0.2~21^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6815%2Fhead;p=ceph.git log: Log.cc: Assign LOG_DEBUG priority to syslog calls Fixes: #13993 Signed-off-by: Brad Hubbard --- diff --git a/src/log/Log.cc b/src/log/Log.cc index b91cc4d3ece60..860b2c7cdb96f 100644 --- a/src/log/Log.cc +++ b/src/log/Log.cc @@ -256,7 +256,7 @@ void Log::_flush(EntryQueue *t, EntryQueue *requeue, bool crash) } if (do_syslog) { - syslog(LOG_USER, "%s", buf); + syslog(LOG_USER|LOG_DEBUG, "%s", buf); } if (do_stderr) { @@ -284,7 +284,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) {