From: Arran Cudbard-Bell Date: Tue, 11 Oct 2011 15:18:13 +0000 (+0200) Subject: Add log messages on connection reservation and release X-Git-Tag: release_3_0_0_beta0~598 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6becfa4cea7085a9f4aa363a0dd44818704c28b3;p=thirdparty%2Ffreeradius-server.git Add log messages on connection reservation and release --- diff --git a/src/main/connection.c b/src/main/connection.c index b158770e1f2..945b6e8977f 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -469,6 +469,8 @@ void *fr_connection_get(fr_connection_pool_t *fc) } do_return: + DEBUG("%s: Reserving connection (%i)", fc->log_prefix, this->number); + fc->active++; this->num_uses++; this->last_used = now; @@ -511,6 +513,8 @@ void fr_connection_release(fr_connection_pool_t *fc, void *conn) } pthread_mutex_unlock(&fc->mutex); + + DEBUG("%s: Released connection (%i)", fc->log_prefix, this->number); } void *fr_connection_reconnect(fr_connection_pool_t *fc, void *conn)