From 1a164a386c555a9924e7f3402126c47094b02f8b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 6 Apr 2018 09:34:16 -0700 Subject: helper: add debug for what encoding was guessed. --- alot/helper.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alot/helper.py') diff --git a/alot/helper.py b/alot/helper.py index 612e5dba..4d8d782e 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -395,6 +395,8 @@ def guess_encoding(blob): :rtype: str """ info = chardet.detect(blob) + logging.debug('Encoding %s with confidence %f', + info['encoding'], info['confidence']) return info['encoding'] -- cgit v1.2.3