We weren't even checking! Shame on us!
This commit is contained in:
parent
20d3fa42c0
commit
e438ef8a4c
@ -63,7 +63,7 @@ int lprintf(enum ltype logtype, const char* fmt, ...)
|
|||||||
char tmt[128];
|
char tmt[128];
|
||||||
now = time(NULL);
|
now = time(NULL);
|
||||||
l = cf.loglevels;
|
l = cf.loglevels;
|
||||||
if(!check_loglevel(logtype, l))
|
if(check_loglevel(logtype, l) != 1)
|
||||||
return -1;
|
return -1;
|
||||||
strftime(tmt, 128, "%d%b %H:%M:%S: ", localtime(&now));
|
strftime(tmt, 128, "%d%b %H:%M:%S: ", localtime(&now));
|
||||||
fmtp = fmt;
|
fmtp = fmt;
|
||||||
|
Loading…
Reference in New Issue
Block a user