From cd0760ddda650c147ba21b933cebef5008eb645e Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 22 Jul 2002 04:08:37 +0000 Subject: Code cleaned up to be less noisy svn:r71 --- src/or/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index c96cf3930..dadfd9aa7 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -68,13 +68,13 @@ int connection_remove(connection_t *conn) { assert(conn); assert(nfds>0); + log(LOG_INFO,"connection_remove(): removing socket %d, nfds now %d",conn->s, nfds-1); circuit_about_to_close_connection(conn); /* flush and send destroys for all circuits on this conn */ current_index = conn->poll_index; if(current_index == nfds-1) { /* this is the end */ // connection_free(conn); nfds--; - log(LOG_INFO,"connection_remove(): nfds now %d.",nfds); return 0; } @@ -86,8 +86,6 @@ int connection_remove(connection_t *conn) { connection_array[current_index] = connection_array[nfds]; connection_array[current_index]->poll_index = current_index; - log(LOG_INFO,"connection_remove(): nfds now %d.",nfds); - return 0; } @@ -285,7 +283,7 @@ void check_conn_read(int i) { } if(retval < 0) { /* this connection is broken. remove it */ - log(LOG_DEBUG,"check_conn_read(): Connection broken, removing."); + log(LOG_INFO,"check_conn_read(): Connection broken, removing."); connection_remove(conn); connection_free(conn); if(i