From: Nick Porter Date: Mon, 17 Jul 2023 15:37:52 +0000 (+0100) Subject: Make debug_ policies a little simpler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04adfb22cedb4c9620fed7b2730916ab7cd6b413;p=thirdparty%2Ffreeradius-server.git Make debug_ policies a little simpler Removes some noise from the debug output --- diff --git a/raddb/policy.d/debug b/raddb/policy.d/debug index 20e1196241d..b106b8b81f4 100644 --- a/raddb/policy.d/debug +++ b/raddb/policy.d/debug @@ -2,7 +2,7 @@ # Outputs the contents of the control list in debugging (-X) mode # debug_control { - if ("%(debug_attr:control)" == '') { + if (%(debug_attr:control)) { noop } } @@ -11,7 +11,7 @@ debug_control { # Outputs the contents of the request list in debugging (-X) mode # debug_request { - if ("%(debug_attr:request)" == '') { + if (%(debug_attr:request)) { noop } } @@ -20,7 +20,7 @@ debug_request { # Outputs the contents of the reply list in debugging (-X) mode # debug_reply { - if ("%(debug_attr:reply)" == '') { + if (%(debug_attr:reply)) { noop } } @@ -29,7 +29,7 @@ debug_reply { # Outputs the contents of the session state list in debugging (-X) mode # debug_session_state { - if ("%(debug_attr:session-state)" == '') { + if (%(debug_attr:session-state)) { noop } }