]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distutils/log.py
Fix or add some DoGetBestSize's
[wxWidgets.git] / wxPython / distutils / log.py
index 0442033d66d895512a009db50eb6053208db08ce..01420da9af0210a65f4b75d27ef9067806099c45 100644 (file)
@@ -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)