Project

General

Profile

Bug #13993

Use of syslog results in all log messages at priority "emerg"

Added by Brad Hubbard over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
common
Target version:
-
Start date:
12/07/2015
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
infernalis,hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

In src/log/Log.cc we call syslog like so;

syslog(LOG_USER, "%s%s", buf, s.c_str());
syslog(LOG_USER, "%s", s);

Calling syslog with LOG_USER alone implies LOG_USER|LOG_EMERG and causes the messages to be logged at emergency priority.


Related issues

Related to Ceph - Bug #15808: Assign LOG_INFO priority to syslog calls Resolved 05/10/2016
Copied to Ceph - Backport #14137: infernalis: Use of syslog results in all log messages at priority "emerg" Resolved
Copied to Ceph - Backport #14138: hammer: Use of syslog results in all log messages at priority "emerg" Resolved

Associated revisions

Revision 8e93f3f4 (diff)
Added by Brad Hubbard over 3 years ago

log: Log.cc: Assign LOG_DEBUG priority to syslog calls

Fixes: #13993
Signed-off-by: Brad Hubbard <>

Revision 4d0b9a1b (diff)
Added by Brad Hubbard about 3 years ago

log: Log.cc: Assign LOG_DEBUG priority to syslog calls

Fixes: #13993
Signed-off-by: Brad Hubbard <>
(cherry picked from commit 8e93f3f45db681f82633ca695a7dc4e7bd030584)

Revision 1665f818 (diff)
Added by Brad Hubbard about 3 years ago

log: Log.cc: Assign LOG_DEBUG priority to syslog calls

Fixes: #13993
Signed-off-by: Brad Hubbard <>
(cherry picked from commit 8e93f3f45db681f82633ca695a7dc4e7bd030584)

History

#1 Updated by Kefu Chai over 3 years ago

  • Assignee set to Brad Hubbard

#2 Updated by Kefu Chai over 3 years ago

  • Status changed from New to Need Review
  • Source changed from other to Development

#3 Updated by Sage Weil over 3 years ago

  • Backport set to infernalis,hammer

#5 Updated by Sage Weil about 3 years ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Brad Hubbard about 3 years ago

  • Copied to Backport #14137: infernalis: Use of syslog results in all log messages at priority "emerg" added

#7 Updated by Brad Hubbard about 3 years ago

  • Copied to Backport #14138: hammer: Use of syslog results in all log messages at priority "emerg" added

#8 Updated by Brad Hubbard about 3 years ago

  • Status changed from Pending Backport to Resolved

#9 Updated by Brad Hubbard almost 3 years ago

  • Related to Bug #15808: Assign LOG_INFO priority to syslog calls added

Also available in: Atom PDF