examples: Display only the form, and not the entire stanza.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-13 21:26:47 +02:00
parent cb59d60034
commit d146ce9fb6

View file

@ -68,7 +68,7 @@ class PubsubClient(slixmpp.ClientXMPP):
def get_configure(self): def get_configure(self):
try: try:
configuration_form = yield from self['xep_0060'].get_node_config(self.pubsub_server, self.node) configuration_form = yield from self['xep_0060'].get_node_config(self.pubsub_server, self.node)
logging.info('Configure form received from node %s: %s', self.node, configuration_form) logging.info('Configure form received from node %s: %s', self.node, configuration_form['pubsub_owner']['configure']['form'])
except XMPPError as error: except XMPPError as error:
logging.error('Could not retrieve configure form from node %s: %s', self.node, error.format()) logging.error('Could not retrieve configure form from node %s: %s', self.node, error.format())