aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/milter.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/libserver/milter.c
parentb9f51206b4568a2cf4243bfdc5d192c1804d0b8e (diff)
downloadrspamd-e9b802f8c73dff121421128c94076475e0df3bda.tar.gz
rspamd-e9b802f8c73dff121421128c94076475e0df3bda.zip
[Project] Convert all C modules to fast debug infrastructure
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r--src/libserver/milter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index 1b3e4de7e..511655e92 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -41,11 +41,13 @@
"milter", priv->pool->tag.uid, \
G_STRFUNC, \
__VA_ARGS__)
-#define msg_debug_milter(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \
- "milter", priv->pool->tag.uid, \
+#define msg_debug_milter(...) rspamd_conditional_debug_fast (NULL, NULL, \
+ rspamd_milter_log_id, "milter", priv->pool->tag.uid, \
G_STRFUNC, \
__VA_ARGS__)
+INIT_LOG_MODULE(milter)
+
struct rspamd_milter_context {
gchar *spam_header;
void *sessions_cache;