commit 7ffb32c: [Minor] Allow to disable logging for modules on reload
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Apr 27 15:21:08 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-04-27 16:17:24 +0100
URL: https://github.com/rspamd/rspamd/commit/7ffb32ce0bbc53e7262470fd485576818c38cb9e (HEAD -> master)
[Minor] Allow to disable logging for modules on reload
---
src/libserver/logger/logger.c | 2 ++
1 file changed, 2 insertions(+)
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);
More information about the Commits
mailing list