Skip to content

Commit

Permalink
[Fix] Core: Fix log_urls flag (and encrypted logging)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Dec 10, 2018
1 parent 743c5a5 commit f5ba29a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libutil/logger.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit f5ba29a

Please sign in to comment.