fix: do not log the whole stacktrace when a tab has no mam support

This commit is contained in:
mathieui 2021-04-19 23:26:25 +02:00
parent e40b2df69e
commit af311a6287

View file

@ -334,7 +334,10 @@ class MAMFiller:
'Fetched %s messages to fill local logs for %s',
len(messages), self.tab.jid,
)
except (DiscoInfoException, NoMAMSupportException, MAMQueryException):
except NoMAMSupportException:
log.debug('The entity %s does not support MAM', self.tab.jid)
return
except (DiscoInfoException, MAMQueryException):
log.debug(
'Failed fetching logs for %s',
self.tab.jid, exc_info=True