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/libserver/fuzzy_backend_redis.c | |
parent | 303d3e7797a58524d0bbba9269314e54efe8a14c (diff) | |
download | rspamd-b9f51206b4568a2cf4243bfdc5d192c1804d0b8e.tar.gz rspamd-b9f51206b4568a2cf4243bfdc5d192c1804d0b8e.zip |
[Project] Enable fast debug lookup for some modules
Diffstat (limited to 'src/libserver/fuzzy_backend_redis.c')
-rw-r--r-- | src/libserver/fuzzy_backend_redis.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/fuzzy_backend_redis.c b/src/libserver/fuzzy_backend_redis.c index d9d1cc0a7..06f100132 100644 --- a/src/libserver/fuzzy_backend_redis.c +++ b/src/libserver/fuzzy_backend_redis.c @@ -41,11 +41,13 @@ "fuzzy_redis", session->backend->id, \ G_STRFUNC, \ __VA_ARGS__) -#define msg_debug_redis_session(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \ - "fuzzy_redis", session->backend->id, \ +#define msg_debug_redis_session(...) rspamd_conditional_debug_fast (NULL, NULL, \ + rspamd_fuzzy_redis_log_id, "fuzzy_redis", session->backend->id, \ G_STRFUNC, \ __VA_ARGS__) +INIT_LOG_MODULE(fuzzy_redis) + struct rspamd_fuzzy_backend_redis { struct upstream_list *read_servers; struct upstream_list *write_servers; |