Skip to content

Commit 7d7335b

Browse files
committed
clean up printing for regexes
1 parent a08c346 commit 7d7335b

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/lib/unlang/xlat_eval.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,16 @@ static inline void xlat_debug_log_expansion(request_t *request, xlat_exp_t const
240240

241241
a = fr_value_box_list_head(args);
242242
if (!a) return;
243-
244243
b = fr_value_box_list_next(args, a);
245244

246-
if (!b) {
247-
RDEBUG2("| ... ??? %pR", a);
248-
249-
} else {
245+
if (b) {
250246
RDEBUG2("| (%pR %s %pR)", a, fr_tokens[node->call.func->token], b);
251-
252-
a = fr_value_box_list_next(args, b);
253-
if (a) {
254-
RDEBUG2("| ... ??? %pR", a);
255-
fr_assert(0);
256-
}
247+
} else {
248+
/*
249+
* @todo - things like regexes "steal" their arguments. we should really
250+
* have a way to print those arguments here.
251+
*/
252+
RDEBUG2("| (%pR %s ...)", a, fr_tokens[node->call.func->token]);
257253
}
258254
}
259255
} else {

0 commit comments

Comments
 (0)