1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 06:25:25 +03:00

log to console if syslog is not available

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
This commit is contained in:
Kay Sievers 2005-11-05 16:22:14 +01:00
parent 833b3c680b
commit 57d782bf1e

View File

@ -61,7 +61,7 @@ extern void log_message(int priority, const char *format, ...)
#undef logging_init #undef logging_init
static inline void logging_init(const char *program_name) 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 #undef logging_close