diff --git a/main.c b/main.c index f033348..393133a 100644 --- a/main.c +++ b/main.c @@ -78,7 +78,7 @@ int printlog(char str[], int level, int errnum) sprintf( tmp, "%s %s: %s %s\n", debug[level], frtime(now), str, strerror(errnum)); }else { - sprintf( tmp, "%s: %s\n", frtime(now), str); + sprintf( tmp, "%s %s: %s\n", debug[level], frtime(now), str); } if ( (fh = fopen(cfg.logfile, "a")) == NULL) {