mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-14 18:45:48 +07:00
log to console if syslog is not available
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
This commit is contained in:
parent
833b3c680b
commit
57d782bf1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user