From 735d4b0a13a92f2dea11f051d60ae82baec23bed Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 16 Nov 2014 14:35:25 +0100 Subject: [PATCH] traceback sent in MUC for levels < logging.DEBUG --- sid/sid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.5