diff --git a/src/main/common/log.c b/src/main/common/log.c index 62aaa3f7d8..24093c6595 100644 --- a/src/main/common/log.c +++ b/src/main/common/log.c @@ -152,7 +152,7 @@ static bool logHasOutput(void) static bool logIsEnabled(logTopic_e topic, unsigned level) { - return logHasOutput() && (level <= logConfig()->level && (logConfig()->topics & (1 << topic))); + return logHasOutput() && (level <= logConfig()->level || (logConfig()->topics & (1 << topic))); } void _logf(logTopic_e topic, unsigned level, const char *fmt, ...)