Make logs to stdout when running in foreground

This commit is contained in:
Ron Pedde 2004-09-19 04:07:03 +00:00
parent 9ac1213126
commit 32e4d018cb

View File

@ -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) {