Last call for 2.2.3 and 2.3.0
Todd Olson
tco2 at cornell.edu
Thu Jun 29 17:05:08 UTC 2000
Hi
In beta-2000-06-13
syslogging some times goes to USER rather than to NEWS or whatever ...
Fix:
make sure an appropriate openlog is called *before* ReadInnConf()
is called.
Details:
Here is an example log entry that went to the default location
(which is USER)
Jun 29 09:42:31 news01 innfeed[22641]: Reading config from /l/S/05/inn/etc/inn.conf
The issue is that ReadInnConf (lib/getconfig.c) syslogs to L_TRACE
the above status message, *and*
At least in
innfeed
innd
ReadInnConf is done *before* openlog() is called to set the facility
to LOG_INN_SERVER. Hence this L_TRACE line from ReadInnConf goes
to the system default facility (USER) rather than to NEWS
I suspect this occurs everywhere ReadInnConf is called.
It appears to me that the log facility is *not* configurable through
the config files, but rather that it is compiled in. Hence would it
not be better for openlog() to be called in befor ReadInnConf
rather than after ???
Grep suggests that ReadInnConf is called in a lot of places.
fixing innfeed at least would be nice because it seems to ReadInnConf
most often ....
Regards,
Todd Olson
Cornell University
More information about the inn-workers
mailing list