Clean up debug / info messages
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Aug 2013 12:16:46 +0000 (08:16 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Aug 2013 12:17:40 +0000 (08:17 -0400)
src/main/modcall.c

index 16f3431..6f017c0 100644 (file)
@@ -463,7 +463,7 @@ redo:
                rad_assert(g->cond != NULL);
 
                RDEBUG2("%.*s? %s %s", depth + 1, modcall_spaces,
-                       (c->type == MOD_IF) ? "if" : "elsif", c->name);
+                       group_name[c->type], c->name);
 
                condition = radius_evaluate_cond(request, entry->result, 0, g->cond);
                if (condition < 0) {
@@ -471,7 +471,7 @@ redo:
                        REDEBUG("Conditional evaluation failed due to internal sanity check.");
                } else {
                        RDEBUG2("%.*s? %s %s -> %s", depth + 1, modcall_spaces,
-                               (c->type == MOD_IF) ? "if" : "elsif",
+                               group_name[c->type],
                                c->name, condition ? "TRUE" : "FALSE");
                }
 
@@ -569,6 +569,7 @@ redo:
                value_pair_map_t *map;
 
 
+               MOD_LOG_OPEN_BRACE("update");
                for (map = g->map; map != NULL; map = map->next) {
                        rcode = radius_map2request(request, map, "update", radius_map2vp, NULL);
                        if (rcode < 0) {