From 26f61b88a47a621e8d27e7401690e88fc7dbcd08 Mon Sep 17 00:00:00 2001 From: Grisha Levit Date: Fri, 4 Nov 2022 22:27:27 -0400 Subject: [PATCH] fix debug output during trace It's a bit confusing that some output (that which is guarded by `args.debug`) is only present when running with a single `-v` but not with `-vv`. I suspect that wasn't the intention. --- git-restore-mtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-restore-mtime b/git-restore-mtime index 4bbe407..6f74f88 100755 --- a/git-restore-mtime +++ b/git-restore-mtime @@ -205,7 +205,7 @@ def parse_args(): args_ = parser.parse_args() if args_.verbose: args_.loglevel = max(logging.TRACE, logging.DEBUG // args_.verbose) - args_.debug = args_.loglevel == logging.DEBUG + args_.debug = args_.loglevel <= logging.DEBUG return args_