From e780fe6b48f9517c0691e1dfc0520ec57a247f2d Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sun, 1 Sep 2024 10:47:26 -0400 Subject: [PATCH] only print out top-level list so we don't print the inner-most things repeatedly --- src/lib/unlang/edit.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index d82ad41f0c..9e5f754351 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -457,13 +457,15 @@ apply_list: /* * Print the children before we do the modifications. */ - RDEBUG2("%s %s {", current->lhs.vpt->name, fr_tokens[map->op]); - if (fr_debug_lvl >= L_DBG_LVL_2) { - RINDENT(); - edit_debug_attr_list(request, children, map); - REXDENT(); + if (!current->parent) { + RDEBUG2("%s %s {", current->lhs.vpt->name, fr_tokens[map->op]); + if (fr_debug_lvl >= L_DBG_LVL_2) { + RINDENT(); + edit_debug_attr_list(request, children, map); + REXDENT(); + } + RDEBUG2("}"); } - RDEBUG2("}"); fr_pair_list_foreach(children, child) { if (!fr_dict_attr_can_contain(current->lhs.vp->da, child->da)) { -- 2.47.2