From df2c0a2e6f5f9c601fc7888e6d4f7820490be4a0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 1 Aug 2007 12:10:13 +0000 Subject: modified rklogd to only change the console log level if -c is specified --- klogd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/klogd.c b/klogd.c index 0a9621a0..d32610e9 100644 --- a/klogd.c +++ b/klogd.c @@ -414,8 +414,11 @@ extern void Syslog(int priority, char *fmt, ...) static void CloseLogSrc(void) { - /* Turn on logging of messages to console. */ - ksyslog(7, NULL, 0); + /* Turn on logging of messages to console, but only if we had the -c + * option -- rgerhards, 2007-08-01 + */ + if (console_log_level != -1) + ksyslog(7, NULL, 0); /* Shutdown the log sources. */ switch ( logsrc ) -- cgit