summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-04-06 09:34:16 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-04-06 09:34:16 -0700
commit1a164a386c555a9924e7f3402126c47094b02f8b (patch)
tree0d2c4d95aedd196180038255b0c818dd6601284c /alot/helper.py
parentbe2facc31fad20f65648bc10948ce497b93c4ebf (diff)
helper: add debug for what encoding was guessed.
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py2
1 files changed, 2 insertions, 0 deletions
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']