logcontrol = true;
- if(level > (c->outcompression >= COMPRESS_NONE ? c->outcompression : debug_level)) {
+ if(level > (c->log_level != DEBUG_UNSET ? c->log_level : debug_level)) {
continue;
}
char message[1024];
size_t msglen = sizeof(message);
- if(!should_log(DEBUG_ALWAYS)) {
+ if(!should_log(DEBUG_TRAFFIC)) {
return;
}
}
}
- real_logger(DEBUG_ALWAYS, LOG_ERR, message);
+ real_logger(DEBUG_TRAFFIC, LOG_ERR, message);
}
void openlogger(const char *ident, logmode_t mode) {