to the main interpreter loop, which cleans up the debug output
a bit, and makes it easier to parse
fr_assert(request->parent);
fr_assert(virtual_server);
fr_assert(request->parent);
fr_assert(virtual_server);
- RDEBUG2("Running request through virtual server \"%s\"", cf_section_name2(virtual_server_cs(virtual_server)));
+ RIDEBUG("Running virtual_server = %s", cf_section_name2(virtual_server_cs(virtual_server)));
/*
* Re-present the previously stored child's session state if there is one
/*
* Re-present the previously stored child's session state if there is one
-
- if (cs) RDEBUG("Running '%s %s' from file %s", cf_section_name1(cs), cf_section_name2(cs), cf_filename(cs));
return unlang_module_yield_to_section(RESULT_P, request,
cs, state->default_rcode, state->resume,
NULL, 0, mctx->rctx);
return unlang_module_yield_to_section(RESULT_P, request,
cs, state->default_rcode, state->resume,
NULL, 0, mctx->rctx);
- if (cs) {
- RDEBUG("Running '%s %s' from file %s", cf_section_name1(cs), cf_section_name2(cs), cf_filename(cs));
- } else {
char const *name;
name = fr_dict_enum_name_by_value(attr_packet_type, fr_box_uint32(request->reply->code));
char const *name;
name = fr_dict_enum_name_by_value(attr_packet_type, fr_box_uint32(request->reply->code));
return UNLANG_ACTION_CALCULATE_RESULT;
}
return UNLANG_ACTION_CALCULATE_RESULT;
}
- RDEBUG("Running '%s %s' from file %s", cf_section_name1(cs), cf_section_name2(cs), cf_filename(cs));
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_FAIL, resume_new_client_done,
NULL, 0, mctx->rctx);
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_FAIL, resume_new_client_done,
NULL, 0, mctx->rctx);
fr_assert(inst->sections.new_client != NULL);
cs = inst->sections.new_client;
fr_assert(inst->sections.new_client != NULL);
cs = inst->sections.new_client;
- RDEBUG("Running '%s %s' from file %s", cf_section_name1(cs), cf_section_name2(cs), cf_filename(cs));
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_FAIL, resume_new_client,
NULL, 0, mctx->rctx);
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_FAIL, resume_new_client,
NULL, 0, mctx->rctx);
.debug_name = name,
.ci = CF_TO_ITEM(server_cs),
.actions = MOD_ACTIONS_FAIL_TIMEOUT_RETURN,
.debug_name = name,
.ci = CF_TO_ITEM(server_cs),
.actions = MOD_ACTIONS_FAIL_TIMEOUT_RETURN,
*/
cf_data_add(cs, c, NULL, false);
cf_item_mark_parsed(cs);
*/
cf_data_add(cs, c, NULL, false);
cf_item_mark_parsed(cs);
+ c->add_filename = true;
if (instruction) *instruction = c;
return 0;
if (instruction) *instruction = c;
return 0;
*/
if (!is_repeatable(frame)) {
if (has_debug_braces(frame)) {
*/
if (!is_repeatable(frame)) {
if (has_debug_braces(frame)) {
- RDEBUG2("%s {", instruction->debug_name);
+ if (unlikely(instruction->add_filename)) {
+ RDEBUG2("%s { # from file %s", instruction->debug_name, cf_filename(instruction->ci));
+ } else {
+ RDEBUG2("%s {", instruction->debug_name);
+ }
char const *debug_name; //!< Printed in log messages when the node is executed.
unlang_type_t type; //!< The specialisation of this node.
bool closed; //!< whether or not this section is closed to new statements
char const *debug_name; //!< Printed in log messages when the node is executed.
unlang_type_t type; //!< The specialisation of this node.
bool closed; //!< whether or not this section is closed to new statements
+ bool add_filename; //!< add the filename when printing in debug mode
CONF_ITEM *ci; //!< used to generate this item
unsigned int number; //!< unique node number
unlang_mod_actions_t actions; //!< Priorities, etc. for the various return codes.
CONF_ITEM *ci; //!< used to generate this item
unsigned int number; //!< unique node number
unlang_mod_actions_t actions; //!< Priorities, etc. for the various return codes.
*
* And continue with sending the generic reply.
*/
*
* And continue with sending the generic reply.
*/
- RDEBUG("Running 'authenticate %s' from file %s", cf_section_name2(cs), cf_filename(cs));
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_NOOP, resume_auth_type,
NULL, 0, mctx->rctx);
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_NOOP, resume_auth_type,
NULL, 0, mctx->rctx);
- LOG_PACKET_DEBUG(request, request->packet, &request->request_pairs, fr_radius_packet_name, true, (request->packet->id >= 0));
-
if (unlikely(request_is_dynamic_client(request))) {
return new_client(p_result, mctx, request);
}
if (unlikely(request_is_dynamic_client(request))) {
return new_client(p_result, mctx, request);
}
*
* And continue with sending the generic reply.
*/
*
* And continue with sending the generic reply.
*/
- RDEBUG("Running 'authenticate %s' from file %s", cf_section_name2(cs), cf_filename(cs));
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_NOOP, resume_auth_type,
NULL, 0, mctx->rctx);
return unlang_module_yield_to_section(RESULT_P, request,
cs, RLM_MODULE_NOOP, resume_auth_type,
NULL, 0, mctx->rctx);