added log level in log
This commit is contained in:
parent
059a2e3c1b
commit
97adaf7c09
2
main.c
2
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user