]> kaliko git repositories - sid.git/commitdiff
traceback sent in MUC for levels < logging.DEBUG
authorkaliko <kaliko@azylum.org>
Sun, 16 Nov 2014 13:35:25 +0000 (14:35 +0100)
committerkaliko <kaliko@azylum.org>
Sun, 16 Nov 2014 13:35:25 +0000 (14:35 +0100)
sid/sid.py

index 53fd5696976f4a60d2d01ec7ec75dfaeb4066aaf..1d3383c9b3c7f87d131f0939bf37ed44f1655b2d 100644 (file)
@@ -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):