From: Alan T. DeKok Date: Wed, 19 Aug 2015 17:01:11 +0000 (-0400) Subject: Clarify debugging messages with actual port number X-Git-Tag: release_3_0_10~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23e9bde08f6f909bc00e8e4dd7769f25a97ef8d;p=thirdparty%2Ffreeradius-server.git Clarify debugging messages with actual port number --- diff --git a/src/main/listen.c b/src/main/listen.c index 1fdb6266d0a..86061d6f3fc 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -2801,10 +2801,6 @@ rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t */ this->print(this, buffer, sizeof(buffer)); - if (rad_debug_lvl >= 2) { - DEBUG("Opening new proxy socket '%s'", buffer); - } - #ifdef WITH_TCP sock->opened = sock->last_packet = now; @@ -2826,7 +2822,7 @@ rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t if (this->fd < 0) { this->print(this, buffer,sizeof(buffer)); - ERROR("Failed opening proxy socket '%s' : %s", + ERROR("Failed opening new proxy socket '%s' : %s", buffer, fr_strerror()); home->last_failed_open = now; listen_free(&this); @@ -2840,7 +2836,7 @@ rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t DEBUG("Trying SSL to port %d\n", home->port); sock->ssn = tls_new_client_session(sock, home->tls, this->fd); if (!sock->ssn) { - ERROR("Failed starting SSL to '%s'", buffer); + ERROR("Failed starting SSL to new proxy socket '%s'", buffer); home->last_failed_open = now; listen_free(&this); return NULL; @@ -2875,6 +2871,12 @@ rad_listen_t *proxy_new_listener(TALLOC_CTX *ctx, home_server_t *home, uint16_t listen_free(&this); return NULL; } + + this->print(this, buffer, sizeof(buffer)); + } + + if (rad_debug_lvl >= 2) { + DEBUG("Opened new proxy socket '%s'", buffer); } home->limit.num_connections++;