summaryrefslogtreecommitdiff
path: root/logging.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-11-05 16:22:14 +0100
committerKay Sievers <kay.sievers@suse.de>2005-11-05 16:22:14 +0100
commit57d782bf1e8313e65579a8faa9671a8e5ffecb2f (patch)
tree2ed49c12a7b6ca02e7c5f9ce3ae17821b2993875 /logging.h
parent833b3c680b23dab87ba4918f25fbd5775dfd9ba8 (diff)
log to console if syslog is not available
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'logging.h')
-rw-r--r--logging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/logging.h b/logging.h
index e0dcb80305..dd520dd874 100644
--- 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