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
fprintf (stderr, "Fatal error, cannot open logfile, exiting\n");
exit (EXIT_FAILURE);
}
+
+ rspamd_logger_configure_modules (rspamd_main->cfg->debug_modules);
}
static void