Mercurial > libervia-backend
comparison src/plugins/plugin_exp_command_export.py @ 1654:22a8e770cb7b
plugin command export: fixed severity for a debug message
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Nov 2015 23:30:41 +0100 |
parents | 3265a2639182 |
children | 244a605623d6 |
comparison
equal
deleted
inserted
replaced
1653:200efadcab76 | 1654:22a8e770cb7b |
---|---|
108 spawned_key = (from_jid.userhostJID(), profile) | 108 spawned_key = (from_jid.userhostJID(), profile) |
109 try: | 109 try: |
110 body = [e for e in message.elements() if e.name == 'body'][0] | 110 body = [e for e in message.elements() if e.name == 'body'][0] |
111 except IndexError: | 111 except IndexError: |
112 # do not block message without body (chat state notification...) | 112 # do not block message without body (chat state notification...) |
113 log.warning("No body element found in message, following normal behaviour") | 113 log.debug("No body element found in message, following normal behaviour") |
114 return True | 114 return True |
115 | 115 |
116 mess_data = unicode(body) + '\n' | 116 mess_data = unicode(body) + '\n' |
117 | 117 |
118 if spawned_key in self.spawned: | 118 if spawned_key in self.spawned: |