]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool testparm: avoid lowering debug level
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 19 Mar 2025 00:53:37 +0000 (13:53 +1300)
committerRalph Boehme <slow@samba.org>
Sat, 29 Mar 2025 07:23:44 +0000 (07:23 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/netcmd/testparm.py

index db8926ce94439dcdc6f32389c7d3b86a5ebdbe02..a2c51432288d66b317cbc1c36c7a01a8fb2e74ec 100644 (file)
@@ -79,7 +79,8 @@ class cmd_testparm(Command):
             raise CommandError(err)
 
         # We need this to force the output
-        samba.set_debug_level(2)
+        if samba.get_debug_level() < 2:
+            samba.set_debug_level(2)
 
         logger = self.get_logger("testparm")