Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0045.py @ 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 | f44a95f566d2 |
children | 6959c71ab8bf |
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: