We weren't even checking! Shame on us!

This commit is contained in:
dcp1990 2005-06-05 18:28:14 +00:00
parent 20d3fa42c0
commit e438ef8a4c

View File

@ -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;