CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2017/04/28 08:52:13
Modified files: usr.sbin/syslogd: log.c log.h syslogd.c Log message: When syslogd(8) failed to open a logfile, the error message could get lost. Remove log_setdebug() as it adds too much abstraction, use the global variable Started instead. Set the Started value before the init() function. Then errors during config file processing will be logged to the console as Initialize is still 0. This is better than stderr as the latter may be redirected to /dev/null. Print the timestamp and hostname also for direct messages to console, so that they look like all others. bug report jung@; OK benno@