summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libutil/logger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 610f1683d..45e99f8ae 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -571,7 +571,8 @@ rspamd_logger_need_log (rspamd_logger_t *rspamd_log, GLogLevelFlags log_level,
{
g_assert (rspamd_log != NULL);
- if ((log_level & RSPAMD_LOG_FORCED) || log_level <= rspamd_log->log_level) {
+ if ((log_level & RSPAMD_LOG_FORCED) ||
+ (log_level & (RSPAMD_LOG_LEVEL_MASK & G_LOG_LEVEL_MASK)) <= rspamd_log->log_level) {
return TRUE;
}