Red Hat Bugzilla – Bug 29406
init logs only to level LOG_INFO
Last modified: 2014-03-16 22:19:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (Win98; U)
Concerned package: SysVinit-2.78-5.i386.rpm (and -.src.rpm)
The init binary logs every message with level LOG_INFO. The variable "loglevel" in the function "log" in init.c does not describe the loglevel, but
whether the message should be logged to file and/or console.
It is probably appropriate to log errors with loglevel LOG_ERR, and the message "Entering runlevel: %c" with level LOG_NOTICE. The latter
since most daemon debug and info messages can probably be safely logged to a different file than /var/log/messages, but one would want the
"Entering runlevel" message to end up in /var/log/messages.
I am willing to write a patch for init.c to make the log function use an actual loglevel, and to add the appropriate loglevel to all calls to the
Steps to Reproduce:
1. Run init
Actual Results: Messages will all be logged with loglevel LOG_INFO, including error messages.
Expected Results: Messages logged with appropriate loglevels.
I am not sure about the severity level that should be assigned to this behaviour. Although not a bug in the strict sense I do believe this
is not correct. I post this as a low priority bug, although one could call it a normal priority bug, or just an enhancement.
Created attachment 12362 [details]
Patch file for init.h and init.c to include log levels. Note that I am not sure of all the appropriate log levels, so these should be checked.
20-7-2001: This bugreport still applies to SysVinit-2.78-18.src.rpm, Sun Jun 24
22:05:00 2001 (rawhide, RH 7.1+)
This is something that's probably best integrated upstream first.
So, should I report it as a request for enhancement under rawhide? The patch works
fine for me. Still leaves the question about appropriate log levels.
By upstream I mean the upstream SysVinit maintianer, Miquel van Smoorenburg