Skip to content

Commit

Permalink
Handle logging constants more strictly.
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Brett <matthew.brett@gmail.com>
  • Loading branch information
HexDecimal and matthew-brett committed Jul 3, 2021
1 parent e39535b commit da1f61e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion delocate/cmd/delocate_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def main():
parser.print_help()
sys.exit(1)
logging.basicConfig(
level=max(logging.DEBUG, logging.WARNING - 10 * opts.verbose),
level={
0: logging.WARNING, 1: logging.INFO, 2: logging.DEBUG
}.get(opts.verbose, logging.DEBUG)
)
multi = len(wheels) > 1
if opts.wheel_dir:
Expand Down

0 comments on commit da1f61e

Please sign in to comment.