]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make debug_ policies a little simpler
authorNick Porter <nick@portercomputing.co.uk>
Mon, 17 Jul 2023 15:37:52 +0000 (16:37 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 17 Jul 2023 15:37:52 +0000 (16:37 +0100)
Removes some noise from the debug output

raddb/policy.d/debug

index 20e1196241df110d560ca2a379c03db11e8f935c..b106b8b81f4ccaa90d8075c3cc67fd6870ce54b2 100644 (file)
@@ -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
        }
 }