From f5ba29a49be3ed568aa9009bc000e5d9d6fc57bc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 10 Dec 2018 16:19:06 +0000 Subject: [PATCH] [Fix] Core: Fix log_urls flag (and encrypted logging) --- src/libutil/logger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libutil/logger.c b/src/libutil/logger.c index 610f1683d3..45e99f8ae4 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; } -- 2.47.3