Clean up logging, log to stderr until syslogd has started

This patch removes internal logging macros and adds support for logging
to stderr until a syslogd is up and running, i.e. /dev/log appears.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-08-18 01:18:31 +02:00
1 parent 77561b6071
commit d670e7d3e8
7 files changed
+57 -41

No files matched your search

+1 -1
View File
@@ -277,7 +277,7 @@ int getty(char *tty, char *baud, char *UNUSED(term))
if (baud) {
speed = do_parse_speed(baud);
if (speed == B0) {
FLOG_ERROR("TTY %s: Invalid speed %s", tty, baud);
logit(LOG_CRIT, "TTY %s: Invalid speed %s", tty, baud);
return 1;
}
}