1
0

added log level in log

This commit is contained in:
Daniel Tartavel 2020-06-08 14:57:51 +02:00
parent 059a2e3c1b
commit 97adaf7c09

2
main.c
View File

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