diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-10-23 20:38:35 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-10-23 20:40:47 +0200 |
commit | cc52a775a514b30311c1f8f0ee17095a2088c8a0 (patch) | |
tree | 5a1f6d7caf71b0af5507bf132d0d29cb2e65822b /check_bogofilter.py | |
parent | b3dd3baf5dd4540ffd9adef15432960e3708ce7d (diff) | |
download | imap-folder-training-cc52a775a514b30311c1f8f0ee17095a2088c8a0.tar.gz |
Use logging better.
Diffstat (limited to 'check_bogofilter.py')
-rwxr-xr-x | check_bogofilter.py | 2 |
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+)\)') |