{
struct rspamd_redis_pool_connection *conn = p;
- msg_debug_rpool ("scheduled removal of connection");
+ msg_debug_rpool ("scheduled removal of connection, refcount: %d",
+ conn->ref.refcount);
REF_RELEASE (conn);
}
if (!conn->active) {
/* Do nothing for active connections as it is already handled somewhere */
if (conn->ctx) {
- msg_info_rpool ("inactive connection terminated: %s",
- conn->ctx->errstr);
+ msg_info_rpool ("inactive connection terminated: %s, refs: %d",
+ conn->ctx->errstr, conn->ref.refcount);
}
REF_RELEASE (conn);