Skip to content

Commit

Permalink
Log the first name of the group
Browse files Browse the repository at this point in the history
So we see "Auth-Type foo {...}"
instead of "group foo {...}"
  • Loading branch information
alandekok authored and arr2036 committed Sep 6, 2013
1 parent afca796 commit bb38a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/modcall.c
Expand Up @@ -60,7 +60,7 @@ struct modcallable {

#define MOD_LOG_OPEN_BRACE(_name) RDEBUG2("%.*s%s %s {", depth + 1, modcall_spaces, _name, c->name)
#define MOD_LOG_CLOSE_BRACE() RDEBUG2("%.*s} # %s %s = %s", depth + 1, modcall_spaces, \
group_name[c->type], c->name ? c->name : "", \
cf_section_name1(g->cs), c->name ? c->name : "", \
fr_int2str(mod_rcode_table, result, "<invalid>"))

typedef struct {
Expand Down Expand Up @@ -749,7 +749,7 @@ static bool modcall_recurse(REQUEST *request, int component, int depth,
do_children:
g = mod_callabletogroup(c);

MOD_LOG_OPEN_BRACE(group_name[c->type]);
MOD_LOG_OPEN_BRACE(cf_section_name1(g->cs));
modcall_child(request, component,
depth + 1, entry, g->children,
&result, &priority);
Expand Down

0 comments on commit bb38a79

Please sign in to comment.