]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
log: Log.cc: Assign LOG_DEBUG priority to syslog calls 6993/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 7 Dec 2015 01:31:28 +0000 (11:31 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 22 Dec 2015 00:42:23 +0000 (10:42 +1000)
Fixes: #13993
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 8e93f3f45db681f82633ca695a7dc4e7bd030584)

src/log/Log.cc

index 3dc6c631061a5385d7b85f5dc1b46f01b0e30da4..a3e54dfa61bff9c1ccf73515fdcb9527fabd7d82 100644 (file)
@@ -241,7 +241,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) {
@@ -263,7 +263,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) {