debug fix

This commit is contained in:
Olaf Rempel 2006-06-22 20:52:54 +02:00
parent 0c45ceb5fd
commit d4f0db33b2

View File

@ -80,7 +80,7 @@ int main(int argc, char *argv[])
/* check logfile */ /* check logfile */
char *logfile = config_get_string("global", "logfile", DEFAULT_LOGFILE); char *logfile = config_get_string("global", "logfile", DEFAULT_LOGFILE);
if (logfile != NULL && debug != 0) { if (logfile != NULL && debug == 0) {
/* start logging */ /* start logging */
if (!log_init(logfile)) if (!log_init(logfile))
exit(-1); exit(-1);