aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/monitored.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/monitored.c
parentb9f51206b4568a2cf4243bfdc5d192c1804d0b8e (diff)
downloadrspamd-e9b802f8c73dff121421128c94076475e0df3bda.tar.gz
rspamd-e9b802f8c73dff121421128c94076475e0df3bda.zip
[Project] Convert all C modules to fast debug infrastructure
Diffstat (limited to 'src/libserver/monitored.c')
-rw-r--r--src/libserver/monitored.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c
index 96e161e1a..bd350e16d 100644
--- a/src/libserver/monitored.c
+++ b/src/libserver/monitored.c
@@ -78,11 +78,13 @@ struct rspamd_monitored {
"monitored", m->tag, \
G_STRFUNC, \
__VA_ARGS__)
-#define msg_debug_mon(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \
- "monitored", m->tag, \
+#define msg_debug_mon(...) rspamd_conditional_debug_fast (NULL, NULL, \
+ rspamd_monitored_log_id, "monitored", m->tag, \
G_STRFUNC, \
__VA_ARGS__)
+INIT_LOG_MODULE(monitored)
+
static inline void
rspamd_monitored_propagate_error (struct rspamd_monitored *m,
const gchar *error)