]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Clarify debugging messages with actual port number
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Aug 2015 17:01:11 +0000 (13:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Aug 2015 17:01:54 +0000 (13:01 -0400)
src/main/listen.c

index 1fdb6266d0acd8a2abaa8e20a163b989a96ab022..86061d6f3fc49b3ee1c1f67997be1dff979c1b80 100644 (file)
@@ -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++;