diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-10-23 20:52:09 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-10-23 20:53:30 +0200 |
commit | 73ac4154371fb32fac5ff943ca0b2e63c153a51b (patch) | |
tree | d30b720f33395c95b819376f3c2902dec374ccbf | |
parent | cc52a775a514b30311c1f8f0ee17095a2088c8a0 (diff) | |
download | imap-folder-training-73ac4154371fb32fac5ff943ca0b2e63c153a51b.tar.gz |
getEffectiveLevel doesn't work.
-rwxr-xr-x | check_bogofilter.py | 5 | ||||
-rwxr-xr-x | train_bogofilter.py | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/check_bogofilter.py b/check_bogofilter.py index cd0fb72..89253ea 100755 --- a/check_bogofilter.py +++ b/check_bogofilter.py @@ -11,10 +11,9 @@ logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', level=logging.INFO) log = logging.getLogger('check_bogofilter') -if log.getEffectiveLevel() >= logging.DEBUG: - imaplib.Debug = 4 +# imaplib.Debug = 4 -pattern_uid = re.compile('\d+ \(UID (?P<uid>\d+)\)') +pattern_uid = re.compile(r'\d+ \(UID (?P<uid>\d+)\)') def parse_uid(data): diff --git a/train_bogofilter.py b/train_bogofilter.py index beadacf..09489d8 100755 --- a/train_bogofilter.py +++ b/train_bogofilter.py @@ -7,13 +7,12 @@ import subprocess from ConfigParser import ConfigParser logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', - level=logging.DEBUG) + level=logging.INFO) log = logging.getLogger('train_bogofilter') CMD_STR = "/usr/bin/bogofilter -%s" -if log.getEffectiveLevel() >= logging.DEBUG: - imaplib.Debug = 4 +# imaplib.Debug = 4 def process_folder(proc_fld_name, bogofilter_param, end_fld_name, mark_seen=True): |