Commit 39a95207 authored by Guido van Rossum's avatar Guido van Rossum

set_verbosity(): do something reasonable for out-of-range verbosity

levels.  (Previously, -vvv would be the same as -q!)
parent 3001d212
......@@ -53,9 +53,9 @@ def set_threshold(level):
_global_log.threshold = level
def set_verbosity(v):
if v == 0:
if v <= 0:
set_threshold(WARN)
if v == 1:
elif v == 1:
set_threshold(INFO)
if v == 2:
elif v >= 2:
set_threshold(DEBUG)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment