]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
log: Log.cc: Assign LOG_INFO priority to syslog calls 11231/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 10 May 2016 06:44:44 +0000 (16:44 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 27 Sep 2016 02:11:47 +0000 (12:11 +1000)
LOG_DEBUG prio messages are not logged by a default syslog
configuration so log at LOG_INFO instead.

Fixes: http://tracker.ceph.com/issues/15808
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 3ab5a660a45506d6c4c41bfeb5babdf188e62b3d)

src/log/Log.cc

index 29e0529e89995523fd5ed3bb1532dad5ec5a8627..1d74b0060f323238b0312f746d34d310c221e422 100644 (file)
@@ -329,7 +329,7 @@ void Log::_flush(EntryQueue *t, EntryQueue *requeue, bool crash)
       }
 
       if (do_syslog) {
-        syslog(LOG_USER|LOG_DEBUG, "%s", buf);
+        syslog(LOG_USER|LOG_INFO, "%s", buf);
       }
 
       if (do_stderr) {
@@ -367,7 +367,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|LOG_DEBUG, "%s", s);
+    syslog(LOG_USER|LOG_INFO, "%s", s);
   }
 
   if ((crash ? m_stderr_crash : m_stderr_log) >= 0) {