From: kaliko Date: Sun, 16 Nov 2014 13:35:25 +0000 (+0100) Subject: traceback sent in MUC for levels < logging.DEBUG X-Git-Tag: 0.1.0~40 X-Git-Url: https://git.kaliko.me/?p=sid.git;a=commitdiff_plain;h=735d4b0a13a92f2dea11f051d60ae82baec23bed traceback sent in MUC for levels < logging.DEBUG --- diff --git a/sid/sid.py b/sid/sid.py index 53fd569..1d3383c 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -107,7 +107,7 @@ class MUCBot(sleekxmpp.ClientXMPP): except Exception as err: reply = ''.join(traceback.format_exc()) self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply)) - if self.log.level < 20 and reply: + if self.log.level < 10 and reply: self.send_message(mto=msg['from'].bare, mbody=reply, mtype='groupchat') def start(self, event):