Skip to content

Commit

Permalink
fix debug output during trace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
algorythmic authored and MestreLion committed Nov 5, 2022
1 parent 5e76b1f commit 26f61b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-restore-mtime
Original file line number Diff line number Diff line change
Expand Up @@ -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_


Expand Down

0 comments on commit 26f61b8

Please sign in to comment.