[Bug 216756] syslog(3): example error log message should use LOG_ERR level
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 3 15:00:44 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216756
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 at FreeBSD.org
Reporter: linuxgeek at gmail.com
Created attachment 179567
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179567&action=edit
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-doc
mailing list