]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
log: Log.cc: Assign LOG_DEBUG priority to syslog calls 6815/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 7 Dec 2015 01:31:28 +0000 (11:31 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 17 Dec 2015 22:52:58 +0000 (08:52 +1000)
Fixes: #13993
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/log/Log.cc

index b91cc4d3ece606333bd5d3e2f5aaa40db8acff18..860b2c7cdb96f8e53734538518bf69f054c3fe93 100644 (file)
@@ -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) {