diff options
authorkytv <>2015-06-22 22:04:51 +0000
committeranonym <>2015-09-11 23:57:21 +0200
commit5d1857739fa14f6abdc0c78037ff6689f53925c5 (patch)
parentd133a9b924ef7e4c7c4b04a9dd93d6bf67e7eecf (diff)
Import logging module in
Our does not use logging but the jabberbot library makes logging calls, causing a one-off message “No handlers could be found for logger "jabberbot"” to be printed to the console. This commit effectively prevents logging/outputting anything to the terminal which is at a level lower than CRITICAL. Will-fix: 9375
1 files changed, 2 insertions, 0 deletions
diff --git a/features/scripts/ b/features/scripts/
index dad41c6..1296f25 100755
--- a/features/scripts/
+++ b/features/scripts/
@@ -3,6 +3,7 @@ import sys
import jabberbot
import xmpp
import potr
+import logging
from argparse import ArgumentParser
class OtrContext(potr.context.Context):
@@ -71,6 +72,7 @@ class OtrBot(jabberbot.JabberBot):
# completely (copy-paste mostly) in order to add support for using
# an XMPP "Connect Server".
def connect(self):
+ logging.basicConfig(level=logging.CRITICAL)
if not self.conn:
conn = xmpp.Client(self.jid.getDomain(), debug=[])
if self.__connect_server: