]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More helpful debug messages
authorNick Porter <nick@portercomputing.co.uk>
Fri, 19 Jan 2024 18:23:21 +0000 (18:23 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 7 Feb 2024 10:41:06 +0000 (10:41 +0000)
src/modules/rlm_sqlippool/rlm_sqlippool.c

index f9f2b42796451f9d181d8fbb6deff1c4acc6a871..7a15410df5d2be1d1478028d10e5a5fb0fe93043 100644 (file)
@@ -372,7 +372,7 @@ static unlang_action_t CC_HINT(nonnull) mod_alloc(rlm_rcode_t *p_result, module_
                                 *      that case, we should return
                                 *      NOTFOUND
                                 */
-                               RDEBUG2("pool appears to be full");
+                               RWDEBUG("Pool \"%pV\" appears to be full", &env->pool_name);
                                RETURN_MODULE_NOTFOUND;
                        }
 
@@ -382,7 +382,8 @@ static unlang_action_t CC_HINT(nonnull) mod_alloc(rlm_rcode_t *p_result, module_
                         *      sqlippool, so we should just ignore this
                         *      allocation failure and return NOOP
                         */
-                       RDEBUG2("IP address could not be allocated as no pool exists with that name");
+                       RWDEBUG("IP address could not be allocated as no pool exists with the name \"%pV\"",
+                               &env->pool_name);
                        RETURN_MODULE_NOOP;
 
                }