]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add more debug output for xlat_purify
authorAlan T. DeKok <aland@freeradius.org>
Sat, 21 May 2022 14:19:15 +0000 (10:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 21 May 2022 14:28:43 +0000 (10:28 -0400)
which can help track down issues with the flags

src/bin/unit_test_attribute.c

index 91cbef4af65fc7e94f4111bdf1054b1cd33ab828..d4371ae5649de14a0472a6dfd18f7e7652dc3f67 100644 (file)
@@ -2763,6 +2763,11 @@ static size_t command_xlat_purify(command_result_t *result, command_file_ctx_t *
                goto return_error;
        }
 
+       if (fr_debug_lvl > 2) {
+               DEBUG("----------------------------------------------------------------------\n");
+               xlat_debug(head);
+       }
+
        (void) xlat_purify(head, NULL);
 
        escaped_len = xlat_print(&FR_SBUFF_OUT(data, COMMAND_OUTPUT_MAX), head, &fr_value_escape_double);