From: Nick Porter Date: Fri, 5 Apr 2024 09:51:10 +0000 (+0100) Subject: No destination means disable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f629799a8ae408f8035892cdb5fc9c4fd520678e;p=thirdparty%2Ffreeradius-server.git No destination means disable --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index afe224133b5..dda1b833923 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -1180,7 +1180,7 @@ static int _log_dst_free(fr_log_t *log) } static xlat_arg_parser_t const xlat_func_log_dst_args[] = { - { .required = true, .type = FR_TYPE_STRING, .concat = true }, + { .required = false, .type = FR_TYPE_STRING, .concat = true }, { .required = false, .type = FR_TYPE_UINT32, .single = true }, { .required = false, .type = FR_TYPE_STRING, .concat = true }, XLAT_ARG_PARSER_TERMINATOR @@ -1206,7 +1206,7 @@ static xlat_action_t xlat_func_log_dst(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor XLAT_ARGS(args, &dst, &lvl, &file); if (!dst || !*dst->vb_strvalue) { - request_log_prepend(request, NULL, L_DBG_LVL_OFF); + request_log_prepend(request, NULL, L_DBG_LVL_DISABLE); return XLAT_ACTION_DONE; }