aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/logger
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-27 16:17:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-27 16:17:24 +0100
commit7ffb32ce0bbc53e7262470fd485576818c38cb9e (patch)
tree8d1622648146c71e438bc638729756b126ff5e27 /src/libserver/logger
parente1339c646f9a910f4cc1805020af35a7c1f82a1d (diff)
downloadrspamd-7ffb32ce0bbc53e7262470fd485576818c38cb9e.tar.gz
rspamd-7ffb32ce0bbc53e7262470fd485576818c38cb9e.zip
[Minor] Allow to disable logging for modules on reload
Diffstat (limited to 'src/libserver/logger')
-rw-r--r--src/libserver/logger/logger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/logger/logger.c b/src/libserver/logger/logger.c
index 789a41af2..56b0c6d32 100644
--- a/src/libserver/logger/logger.c
+++ b/src/libserver/logger/logger.c
@@ -853,6 +853,8 @@ rspamd_logger_configure_modules (GHashTable *mods_enabled)
gpointer k, v;
guint id;
+ /* Clear all in bitset_allocated -> this are bytes not bits */
+ memset (log_modules->bitset, 0, log_modules->bitset_allocated);
/* On first iteration, we go through all modules enabled and add missing ones */
g_hash_table_iter_init (&it, mods_enabled);