diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-20 14:03:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-20 14:03:30 +0000 |
commit | 076d8e3f5b12781acafe0e6de081b9041d6de208 (patch) | |
tree | cc86b76559ba87d5cb31395cd4a6737e68d024d1 /src/libutil | |
parent | 7fa61a389c9560d3afcb655fae441f24d07cb80a (diff) | |
download | rspamd-076d8e3f5b12781acafe0e6de081b9041d6de208.tar.gz rspamd-076d8e3f5b12781acafe0e6de081b9041d6de208.zip |
[Minor] Preserve debug logging when running `rspamadm -v`
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/logger.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c index 7eb00f3fa..8238886da 100644 --- a/src/libutil/logger.c +++ b/src/libutil/logger.c @@ -459,7 +459,11 @@ rspamd_set_logger (struct rspamd_config *cfg, logger->log_type = cfg->log_type; logger->log_facility = cfg->log_facility; - logger->log_level = cfg->log_level; + + if (!(logger->flags & RSPAMD_LOG_FLAG_ENFORCED)) { + logger->log_level = cfg->log_level; + } + logger->log_buffered = cfg->log_buffered; logger->log_silent_workers = cfg->log_silent_workers; logger->log_buf_size = cfg->log_buf_size; |