aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 18:09:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 18:09:44 +0100
commitcd994934d1f2bfd7ca484a5588c1d9911f140c35 (patch)
tree5dc5e4f412587fa0906f43ad6790f243e4972b7c /src/libutil/logger.c
parent5a3a2f5427bc838b3fc07762b191f81b5b43eca6 (diff)
downloadrspamd-cd994934d1f2bfd7ca484a5588c1d9911f140c35.tar.gz
rspamd-cd994934d1f2bfd7ca484a5588c1d9911f140c35.zip
[Feature] Add pure Lua debugm function
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r--src/libutil/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index bbdc69e97..c9f14ccb6 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -545,7 +545,7 @@ rspamd_logger_need_log (rspamd_logger_t *rspamd_log, GLogLevelFlags log_level,
{
g_assert (rspamd_log != NULL);
- if (log_level <= rspamd_log->cfg->log_level) {
+ if ((log_level & RSPAMD_LOG_FORCED) || log_level <= rspamd_log->cfg->log_level) {
return TRUE;
}