From f9eb8f7e066970d56a814128fd49170348a7fbd8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 19 Jun 2000 23:50:02 +0000 Subject: If compiled with --enable-debug, don't even try to log to syslog unless the user forces it in the config file. --- sysdep/unix/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sysdep/unix/main.c') diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index e0e3ca9..2e10521 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -35,6 +35,12 @@ * Debugging */ +#ifdef DEBUGGING +static int debug_flag = 1; +#else +static int debug_flag = 0; +#endif + void async_dump(void) { @@ -77,7 +83,7 @@ sysdep_preconfig(struct config *c) int sysdep_commit(struct config *new, struct config *old) { - log_switch(&new->logfiles); + log_switch(debug_flag, &new->logfiles); return 0; } @@ -342,12 +348,6 @@ signal_init(void) static char *opt_list = "c:dD:s:"; -#ifdef DEBUGGING -static int debug_flag = 1; -#else -static int debug_flag = 0; -#endif - static void usage(void) { -- cgit v1.2.3