chiark / gitweb /
log to console if syslog is not available
authorKay Sievers <kay.sievers@suse.de>
Sat, 5 Nov 2005 15:22:14 +0000 (16:22 +0100)
committerKay Sievers <kay.sievers@suse.de>
Sat, 5 Nov 2005 15:22:14 +0000 (16:22 +0100)
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
logging.h

index e0dcb80..dd520dd 100644 (file)
--- a/logging.h
+++ b/logging.h
@@ -61,7 +61,7 @@ extern void log_message(int priority, const char *format, ...)
 #undef logging_init
 static inline void logging_init(const char *program_name)
 {
-       openlog(program_name, LOG_PID, LOG_DAEMON);
+       openlog(program_name, LOG_PID | LOG_CONS, LOG_DAEMON);
 }
 
 #undef logging_close