aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-16 12:12:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-16 12:12:23 +0000
commit86bf20929247329a022faa7b0384c20fac0a5079 (patch)
treeb61b42924e3a1fa339b63fe5edb5c152c2b482ee /src/libutil/logger.h
parentd302edad6a90062424df6883b0df9a3cb9325870 (diff)
downloadrspamd-86bf20929247329a022faa7b0384c20fac0a5079.tar.gz
rspamd-86bf20929247329a022faa7b0384c20fac0a5079.zip
[Rework] Improve bayes debug logging, remove unused stuff
Diffstat (limited to 'src/libutil/logger.h')
-rw-r--r--src/libutil/logger.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/logger.h b/src/libutil/logger.h
index a969e66b0..7347e67b1 100644
--- a/src/libutil/logger.h
+++ b/src/libutil/logger.h
@@ -111,6 +111,12 @@ guint rspamd_logger_add_debug_module (const gchar *mod);
rspamd_##mname##_log_id = rspamd_logger_add_debug_module(#mname); \
}
+#define INIT_LOG_MODULE_PUBLIC(mname) \
+ guint rspamd_##mname##_log_id = (guint)-1; \
+ RSPAMD_CONSTRUCTOR(rspamd_##mname##_log_init) { \
+ rspamd_##mname##_log_id = rspamd_logger_add_debug_module(#mname); \
+}
+
void rspamd_logger_configure_modules (GHashTable *mods_enabled);
/**