From: Alan T. DeKok Date: Sat, 21 May 2022 14:19:15 +0000 (-0400) Subject: add more debug output for xlat_purify X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cabbbba2c3c5a31fe595eee33873d19bdfdb5214;p=thirdparty%2Ffreeradius-server.git add more debug output for xlat_purify which can help track down issues with the flags --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 91cbef4af65..d4371ae5649 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -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);