diff --git a/sammler.c b/sammler.c index b85f761..9dccb87 100644 --- a/sammler.c +++ b/sammler.c @@ -80,7 +80,7 @@ int main(int argc, char *argv[]) /* check logfile */ char *logfile = config_get_string("global", "logfile", DEFAULT_LOGFILE); - if (logfile != NULL && debug != 0) { + if (logfile != NULL && debug == 0) { /* start logging */ if (!log_init(logfile)) exit(-1);