From 6f2bc40635c3bad056d1379788e41c536b8943f4 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 27 Jun 2012 14:25:28 +0200 Subject: [PATCH] Reshuffled the log level for the default messages --- fix_imap_internaldate.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fix_imap_internaldate.py b/fix_imap_internaldate.py index 8056a91..8c827e1 100644 --- a/fix_imap_internaldate.py +++ b/fix_imap_internaldate.py @@ -72,7 +72,7 @@ def main(): box = caching_data.retrieve_cached_mailbox(mailbox[0], mailbox[1], user['username']) mail_ids = session.fetch_messages() new_ids = box.synchronize(mail_ids) - logging.warning("%s new messages out of %s found in %s.", len(new_ids), len(mail_ids), box.name) + logging.info("%s new messages out of %s found in %s.", len(new_ids), len(mail_ids), box.name) except UserWarning as ex: logging.error(ex) continue @@ -99,7 +99,7 @@ def main(): logging.error(ex) continue else: - logging.info("Date conflict found in message uid: %s - mailbox: %s - user: %s.\nInternal date %s is different from received date %s from RECEIVED header:\n%s.", + logging.warning("Date conflict found in message uid: %s - mailbox: %s - user: %s.\nInternal date %s is different from received date %s from RECEIVED header:\n%s.", mid.decode('iso-8859-1'), box.name, box.owner, internal_date.strftime("%d %b %Y %H:%M:%S"), received_date.strftime("%d %b %Y %H:%M:%S"), -- 1.7.1