Skip to content

Commit

Permalink
fix logger_will_write_level wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Apr 24, 2024
1 parent 890e6f9 commit 6d1c3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ww/eventloop/base/hlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6d1c3d5

Please sign in to comment.