From 97adaf7c095bd88cc78792b1bec0a3a15d3d9c9a Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 8 Jun 2020 14:57:51 +0200 Subject: [PATCH] added log level in log --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {