]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
only print command hierarchy if we're debugging
authorAlan T. DeKok <aland@freeradius.org>
Tue, 10 Jul 2018 20:56:45 +0000 (16:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 10 Jul 2018 20:58:01 +0000 (16:58 -0400)
src/main/unit_test_attribute.c

index b876ed6a9eb0cbd03ae8096d688784f85cd4eb26..a671cf2fb32e80b55cda74ed0cc709943efcaa38 100644 (file)
@@ -750,7 +750,7 @@ static void command_add(TALLOC_CTX *ctx, char *input, char *output, size_t outle
                return;
        }
 
-       command_print();
+       if (rad_debug_lvl) command_print();
 
        snprintf(output, outlen, "ok");
        fflush(stdout);