]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Include timeout duration in debug message
authorNick Porter <nick@portercomputing.co.uk>
Mon, 13 Jan 2025 10:15:52 +0000 (10:15 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 13 Jan 2025 10:15:52 +0000 (10:15 +0000)
src/lib/io/master.c

index 9185767f5d57410603982d657c1573239361b302..0ebf774f837abda20b5599d08948fd065191d5df 100644 (file)
@@ -1972,8 +1972,6 @@ static void client_expiry_timer(fr_event_list_t *el, fr_time_t now, void *uctx)
                 */
                if (client->ev) return;
 
-               DEBUG("TIMER - setting idle timeout for connection from client %s", client->radclient->shortname);
-
                switch (client->state) {
                case PR_CLIENT_CONNECTED:
                        fr_assert(connection != NULL);
@@ -1996,6 +1994,8 @@ static void client_expiry_timer(fr_event_list_t *el, fr_time_t now, void *uctx)
                        return;
                }
 
+               DEBUG("TIMER - setting idle timeout to %pVs for connection from client %s", fr_box_time_delta(delay), client->radclient->shortname);
+
                goto reset_timer;
        }