summaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-20 14:10:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-20 14:10:08 +0000
commite9b802f8c73dff121421128c94076475e0df3bda (patch)
treef9a274ef11cbc873e06d520c720cb450a1f4766c /src/plugins/chartable.c
parentb9f51206b4568a2cf4243bfdc5d192c1804d0b8e (diff)
downloadrspamd-e9b802f8c73dff121421128c94076475e0df3bda.tar.gz
rspamd-e9b802f8c73dff121421128c94076475e0df3bda.zip
[Project] Convert all C modules to fast debug infrastructure
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index c9294cec3..0d409480a 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -47,11 +47,14 @@
"chartable", task->task_pool->tag.uid, \
G_STRFUNC, \
__VA_ARGS__)
-#define msg_debug_chartable(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \
- "chartable", task->task_pool->tag.uid, \
+
+#define msg_debug_chartable(...) rspamd_conditional_debug_fast (NULL, task->from_addr, \
+ rspamd_chartable_log_id, "chartable", task->task_pool->tag.uid, \
G_STRFUNC, \
__VA_ARGS__)
+INIT_LOG_MODULE(chartable)
+
/* Initialization */
gint chartable_module_init (struct rspamd_config *cfg, struct module_ctx **ctx);
gint chartable_module_config (struct rspamd_config *cfg);