[systemd-bugs] [Bug 65610] New: SyslogFacility ignored when SyslogLevelPrefix=true

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 10 06:35:44 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=65610

          Priority: medium
            Bug ID: 65610
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: SyslogFacility ignored when SyslogLevelPrefix=true
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: freedesktop.org at quisquis.de
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Messages of services configured with SyslogLevelPrefix=true are always logged
as facility "user", no matter what SyslogFacility is set to.

Example:

---------
[Unit]
Description=Facility Test

[Install]

[Service]
ExecStart=/bin/sh -c 'while /bin/true; do echo "<4>Hello World"; sleep 3; done'
KillMode=process

StandardInput=null
StandardOutput=syslog
StandardError=inherit

SyslogFacility=mail
SyslogIdentifier=facility-test
SyslogLevel=notice
SyslogLevelPrefix=true
----------

These messages end up in /var/log/messages, not /var/log/mail. An strace on the
syslog daemon shows that it's not a syslog configuration problem:

[pid 20592] recvfrom(3, "<12>Jun 10 15:27:46 facility-tes"..., 8192, 0,
{sa_family=AF_FILE, sun_path="/dev/log"}, [11]) = 53

I. e. syslog receives these as 12=1*8+4, which is facility "user" and level 4.

(Discovered on openSUSE-12.3 with systemd-13.25.1)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130610/39df5200/attachment.html>


More information about the systemd-bugs mailing list