traceback sent in debug mode only
def muc_message(self, msg):
# ignore message from self
- body = msg['body']
+ body = msg['body'].strip()
mucfrom = msg['mucnic']
if msg['mucnick'] == self.nick:
return
except Exception as err:
reply = ''.join(traceback.format_exc())
self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply))
+ self.log.info(self.log.level)
+ if self.log.level >= 20 or not reply:
+ return
self.send_message(mto=msg['from'].bare, mbody=reply, mtype='groupchat')
def start(self, event):