diff sat/plugins/plugin_xep_0045.py @ 2990:6959c71ab8bf

plugin XEP-0045: log "failure" on configure error
author Goffi <goffi@goffi.org>
date Sat, 06 Jul 2019 15:51:48 +0200
parents 37b55d87d027
children f4590ca2acff
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0045.py	Sat Jul 06 15:50:55 2019 +0200
+++ b/sat/plugins/plugin_xep_0045.py	Sat Jul 06 15:51:48 2019 +0200
@@ -237,7 +237,8 @@
             # a proper configuration management should be done
             log.debug(_(u"room locked !"))
             d = client._muc_client.configure(room.roomJID, {})
-            d.addErrback(lambda __: log.error(_(u'Error while configuring the room')))
+            d.addErrback(self.host.logErrback,
+                         msg=_(u'Error while configuring the room: {failure_}'))
         return room.fully_joined
 
     def _joinEb(self, failure, client, room_jid, nick, password):