diff --git a/ww/eventloop/base/hlog.c b/ww/eventloop/base/hlog.c index aa351d85..0f2d8efb 100644 --- a/ww/eventloop/base/hlog.c +++ b/ww/eventloop/base/hlog.c @@ -135,7 +135,7 @@ void logger_set_level_by_str(logger_t* logger, const char* szLoglevel) { } int logger_will_write_level(logger_t* logger, log_level_e level) { - return (logger->level) >= level; + return (logger->level) <= level; } void logger_set_format(logger_t* logger, const char* format) {