diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-16 12:12:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-16 12:12:23 +0000 |
commit | 86bf20929247329a022faa7b0384c20fac0a5079 (patch) | |
tree | b61b42924e3a1fa339b63fe5edb5c152c2b482ee /src/libutil/logger.h | |
parent | d302edad6a90062424df6883b0df9a3cb9325870 (diff) | |
download | rspamd-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.h | 6 |
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); /** |