diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-20 14:10:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-20 14:10:08 +0000 |
commit | e9b802f8c73dff121421128c94076475e0df3bda (patch) | |
tree | f9a274ef11cbc873e06d520c720cb450a1f4766c /src/libserver/redis_pool.c | |
parent | b9f51206b4568a2cf4243bfdc5d192c1804d0b8e (diff) | |
download | rspamd-e9b802f8c73dff121421128c94076475e0df3bda.tar.gz rspamd-e9b802f8c73dff121421128c94076475e0df3bda.zip |
[Project] Convert all C modules to fast debug infrastructure
Diffstat (limited to 'src/libserver/redis_pool.c')
-rw-r--r-- | src/libserver/redis_pool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c index bbc734173..3d77aca1c 100644 --- a/src/libserver/redis_pool.c +++ b/src/libserver/redis_pool.c @@ -67,11 +67,13 @@ static const guint default_max_conns = 100; "redis_pool", conn->tag, \ G_STRFUNC, \ __VA_ARGS__) -#define msg_debug_rpool(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \ - "redis_pool", conn->tag, \ +#define msg_debug_rpool(...) rspamd_conditional_debug_fast (NULL, NULL, \ + rspamd_redis_pool_log_id, "redis_pool", conn->tag, \ G_STRFUNC, \ __VA_ARGS__) +INIT_LOG_MODULE(redis_pool) + static inline guint64 rspamd_redis_pool_get_key (const gchar *db, const gchar *password, const char *ip, int port) |