Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Feb 2017 15:00:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 216756] syslog(3): example error log message should use LOG_ERR level
Message-ID:  <bug-216756-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216756

            Bug ID: 216756
           Summary: syslog(3): example error log message should use
                    LOG_ERR level
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc@FreeBSD.org
          Reporter: linuxgeek@gmail.com

Created attachment 179567
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179567&action=
=3Dedit
patch

The man page lists error levels and says that `LOG_ERR` should be used for
errors.

In the examples, there's an error being logged "foobar error: %m" (%m fills=
 in
the error message based on errno, so we're definitely logging an error here=
),
but it's being logged at the `LOG_INFO` level. If it's an error, I think it
should be at the `LOG_ERR` level.

This is present in the latest base HEAD r313159

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216756-9>