]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add log messages on connection reservation and release
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 11 Oct 2011 15:18:13 +0000 (17:18 +0200)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 11 Oct 2011 15:18:13 +0000 (17:18 +0200)
src/main/connection.c

index b158770e1f2d3b3b486f07639aa3512cc460f5f5..945b6e8977f5028e11487d714f9c9730a6d2d201 100644 (file)
@@ -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)