From: Arran Cudbard-Bell Date: Wed, 30 Apr 2025 18:13:00 +0000 (-0400) Subject: Log what we're catching X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02d777f0806f33735685c16a726dccd5c01adc4d;p=thirdparty%2Ffreeradius-server.git Log what we're catching --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index cf4a46ed2e..ddc9d59de0 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -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)) { /*