aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-18 12:22:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-18 12:22:10 +0100
commitda60dec1d43594695255180ed9dbcb680305e941 (patch)
tree1943a89e03c3f2a0f2389d2c04baa93d78b86e02
parent83bcd87dd41bb19917e2cd23e14bf5fef16fbe22 (diff)
downloadrspamd-da60dec1d43594695255180ed9dbcb680305e941.tar.gz
rspamd-da60dec1d43594695255180ed9dbcb680305e941.zip
[Minor] Recognize `notice` log level
Issue: #2294 Closes: #2294
-rw-r--r--src/libserver/cfg_rcl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 174b4af5e..1b93d5213 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -213,7 +213,8 @@ rspamd_rcl_logging_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
else if (g_ascii_strcasecmp (log_level, "info") == 0) {
cfg->log_level = G_LOG_LEVEL_INFO | G_LOG_LEVEL_MESSAGE;
}
- else if (g_ascii_strcasecmp (log_level, "message") == 0) {
+ else if (g_ascii_strcasecmp (log_level, "message") == 0 ||
+ g_ascii_strcasecmp (log_level, "notice") == 0) {
cfg->log_level = G_LOG_LEVEL_MESSAGE;
}
else if (g_ascii_strcasecmp (log_level, "silent") == 0) {