From: Alan T. DeKok Date: Tue, 23 Mar 2021 20:45:44 +0000 (-0400) Subject: print module rcode only if it doesn't yield X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f458f79767a81da9f0ed649e7314ececdd11a797;p=thirdparty%2Ffreeradius-server.git print module rcode only if it doesn't yield --- diff --git a/src/lib/unlang/module.c b/src/lib/unlang/module.c index 82a452ee251..460d27dddbf 100644 --- a/src/lib/unlang/module.c +++ b/src/lib/unlang/module.c @@ -694,9 +694,6 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re return UNLANG_ACTION_STOP_PROCESSING; } - RDEBUG2("%s (%s)", frame->instruction->name ? frame->instruction->name : "", - fr_table_str_by_value(mod_rcode_table, rcode, "")); - if (ua == UNLANG_ACTION_YIELD) { if (stack_depth < unlang_current_depth(request)) return UNLANG_ACTION_PUSHED_CHILD; fr_assert(stack_depth == unlang_current_depth(request)); @@ -704,6 +701,9 @@ static unlang_action_t unlang_module_resume(rlm_rcode_t *p_result, request_t *re return UNLANG_ACTION_YIELD; } + RDEBUG2("%s (%s)", frame->instruction->name ? frame->instruction->name : "", + fr_table_str_by_value(mod_rcode_table, rcode, "")); + state->thread->active_callers--; /*