From 32e4d018cbf1d7a38a1edab5b7bde66eb492d035 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 19 Sep 2004 04:07:03 +0000 Subject: [PATCH] Make logs to stdout when running in foreground --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index cde4ddeb..91540414 100644 --- a/src/main.c +++ b/src/main.c @@ -608,7 +608,7 @@ int main(int argc, char *argv[]) { exit(EXIT_FAILURE); } - if((config.logfile) && (!parseonly)) { + if((config.logfile) && (!parseonly) && (!foreground)) { log_setdest(config.logfile,LOGDEST_LOGFILE); } else { if(!foreground) {