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 4e57564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion delocate/cmd/delocate_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ 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 4e57564

Please sign in to comment.