commit f5ba29a: [Fix] Core: Fix log_urls flag (and encrypted logging)
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:06 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-10 16:19:06 +0000
URL: https://github.com/rspamd/rspamd/commit/f5ba29a49be3ed568aa9009bc000e5d9d6fc57bc
[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 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;
}
More information about the Commits
mailing list