summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-10-08 16:09:00 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-10-08 16:09:00 +0100
commitc2fad0d7dc82e9bffa2edf9ae992b416e20f5906 (patch)
tree7748fb567df526f1b2c8bcb89b5630eec95f6a49
parentf1b94534a44cf2301e59c3da3cfb0f2ec0931b85 (diff)
downloadpoezio-c2fad0d7dc82e9bffa2edf9ae992b416e20f5906.tar.gz
poezio-c2fad0d7dc82e9bffa2edf9ae992b416e20f5906.tar.bz2
poezio-c2fad0d7dc82e9bffa2edf9ae992b416e20f5906.tar.xz
poezio-c2fad0d7dc82e9bffa2edf9ae992b416e20f5906.zip
Don’t put the vCard/0084 tracebacks in the error log.
-rw-r--r--poezio/core/handlers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index e7d62567..f6d9f304 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -365,7 +365,7 @@ class HandlerCore:
try:
metadata = msg['pubsub_event']['items']['item']['avatar_metadata']['items']
except Exception:
- log.exception('Failed getting metadata from 0084:')
+ log.debug('Failed getting metadata from 0084:', exc_info=True)
return
cache_dir = path.join(CACHE_DIR, 'avatars', jid)
for info in metadata:
@@ -389,7 +389,7 @@ class HandlerCore:
timeout=60)
contact.avatar = result['pubsub']['items']['item']['avatar_data']['value']
except Exception:
- log.exception('Failed retrieving 0084 data from %s:', jid)
+ log.debug('Failed retrieving 0084 data from %s:', jid, exc_info=True)
continue
log.debug('Received %s avatar: %s', jid, info['type'])
@@ -430,7 +430,7 @@ class HandlerCore:
avatar = result['vcard_temp']['PHOTO']
contact.avatar = avatar['BINVAL']
except Exception:
- log.exception('Failed retrieving vCard from %s:', jid)
+ log.debug('Failed retrieving vCard from %s:', jid, exc_info=True)
return
log.debug('Received %s avatar: %s', jid, avatar['TYPE'])