Commit c2fad0d7 authored by Link Mauve's avatar Link Mauve

Don’t put the vCard/0084 tracebacks in the error log.

parent f1b94534
......@@ -365,7 +365,7 @@ class HandlerCore:
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)
cache_dir = path.join(CACHE_DIR, 'avatars', jid)
for info in metadata:
......@@ -389,7 +389,7 @@ class HandlerCore:
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)
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)
log.debug('Received %s avatar: %s', jid, avatar['TYPE'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment