From 6d1c3d53932aad40eea793d0064b86a436fba084 Mon Sep 17 00:00:00 2001 From: radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Wed, 24 Apr 2024 21:09:51 +0000 Subject: [PATCH] fix logger_will_write_level wrong condition --- ww/eventloop/base/hlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {