diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-20 13:29:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-20 13:29:22 +0000 |
commit | b9f51206b4568a2cf4243bfdc5d192c1804d0b8e (patch) | |
tree | 3ff63f17ed6fa46fb751c5d5f597c92f6d9fb031 /src/libutil/radix.c | |
parent | 303d3e7797a58524d0bbba9269314e54efe8a14c (diff) | |
download | rspamd-b9f51206b4568a2cf4243bfdc5d192c1804d0b8e.tar.gz rspamd-b9f51206b4568a2cf4243bfdc5d192c1804d0b8e.zip |
[Project] Enable fast debug lookup for some modules
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r-- | src/libutil/radix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c index bb295d7d1..8c2258459 100644 --- a/src/libutil/radix.c +++ b/src/libutil/radix.c @@ -31,11 +31,13 @@ "radix", tree->pool->tag.uid, \ G_STRFUNC, \ __VA_ARGS__) -#define msg_debug_radix(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \ - "radix", tree->pool->tag.uid, \ +#define msg_debug_radix(...) rspamd_conditional_debug_fast (NULL, NULL, \ + rspamd_radix_log_id, "radix", tree->pool->tag.uid, \ G_STRFUNC, \ __VA_ARGS__) +INIT_LOG_MODULE(radix) + struct radix_tree_compressed { rspamd_mempool_t *pool; size_t size; |