Browse Source

[Minor] Allow to disable logging for modules on reload

tags/2.6
Vsevolod Stakhov 4 years ago
parent
commit
7ffb32ce0b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libserver/logger/logger.c

+ 2
- 0
src/libserver/logger/logger.c View File

@@ -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);


Loading…
Cancel
Save