aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-15 15:16:45 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-15 15:16:45 +0000
commita430b091986b3ed700d809667d4280e890e0df04 (patch)
treeb248cc8651966cb2c61888ab92caf769380a7baf /src/libutil
parent36f824542b236f4e8c600e89132f6c40d58a3509 (diff)
downloadrspamd-a430b091986b3ed700d809667d4280e890e0df04.tar.gz
rspamd-a430b091986b3ed700d809667d4280e890e0df04.zip
[Minor] Fix enabling debug modules on startup
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/logger.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 629ae8a12..0926b09de 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -1439,7 +1439,11 @@ rspamd_logger_configure_modules (GHashTable *mods_enabled)
while (g_hash_table_iter_next (&it, &k, &v)) {
id = rspamd_logger_add_debug_module ((const gchar *)k);
- msg_info ("enable debugging for module %s (%d)", (const gchar *)k, id);
- setbit (log_modules->bitset, id);
+
+ if (isclr (log_modules->bitset, id)) {
+ msg_info ("enable debugging for module %s (%d)", (const gchar *) k,
+ id);
+ setbit (log_modules->bitset, id);
+ }
}
} \ No newline at end of file