summaryrefslogtreecommitdiffstats
path: root/check_bogofilter.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2017-10-23 20:38:35 +0200
committerMatěj Cepl <mcepl@cepl.eu>2017-10-23 20:40:47 +0200
commitcc52a775a514b30311c1f8f0ee17095a2088c8a0 (patch)
tree5a1f6d7caf71b0af5507bf132d0d29cb2e65822b /check_bogofilter.py
parentb3dd3baf5dd4540ffd9adef15432960e3708ce7d (diff)
downloadimap-folder-training-cc52a775a514b30311c1f8f0ee17095a2088c8a0.tar.gz
Use logging better.
Diffstat (limited to 'check_bogofilter.py')
-rwxr-xr-xcheck_bogofilter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_bogofilter.py b/check_bogofilter.py
index f75c696..cd0fb72 100755
--- a/check_bogofilter.py
+++ b/check_bogofilter.py
@@ -11,7 +11,7 @@ logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
level=logging.INFO)
log = logging.getLogger('check_bogofilter')
-if log.getEffectiveLevel() == logging.DEBUG:
+if log.getEffectiveLevel() >= logging.DEBUG:
imaplib.Debug = 4
pattern_uid = re.compile('\d+ \(UID (?P<uid>\d+)\)')