]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Log what we're catching
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Apr 2025 18:13:00 +0000 (14:13 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 30 Apr 2025 20:22:50 +0000 (16:22 -0400)
src/lib/unlang/compile.c

index cf4a46ed2ed740180b8fa4db550ec82572f40c2c..ddc9d59de00f2d2a181059d622ab7bbb1fb00bb8 100644 (file)
@@ -2550,12 +2550,14 @@ static unlang_t *compile_catch(unlang_t *parent, unlang_compile_t *unlang_ctx, C
        if (!g) return NULL;
 
        c = unlang_group_to_generic(g);
-       c->debug_name = c->name = cf_section_name1(cs);
-
        ca = unlang_group_to_catch(g);
 
        if (catching_timeout) {
                ca->timeout = catching_timeout;
+       /*
+        *      Want to log what we caught
+        */
+       c->debug_name = c->name = talloc_typed_asprintf(c, "%s %s", cf_section_name1(cs), cf_section_name2(cs));
 
        } else if (!cf_section_name2(cs)) {
                /*