Mercurial > libervia-backend
changeset 2986:37b55d87d027
plugin XEP-0045: added a warning if a message is discarded because the room has not been found
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 02 Jul 2019 19:36:27 +0200 |
parents | 1d92ad95185f |
children | 8990ed9aad31 |
files | sat/plugins/plugin_xep_0045.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0045.py Tue Jul 02 19:36:26 2019 +0200 +++ b/sat/plugins/plugin_xep_0045.py Tue Jul 02 19:36:27 2019 +0200 @@ -1221,6 +1221,8 @@ room, user = self._getRoomUser(message) if room is None: + log.warning(u"No room found for message: {message}" + .format(message=message.toElement().toXml())) return if message.subject is not None: