From: ThomasV Date: Fri, 7 Mar 2014 09:10:57 +0000 (+0100) Subject: add log messages for irc X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=3da0c07024ca0a6158cb1d5688b266348b876161;hp=9baf5ef4407f8d1aa5bc894ea1a0f34a9d8bae3c;p=electrum-server.git add log messages for irc --- diff --git a/backends/irc/__init__.py b/backends/irc/__init__.py index 8dae94e..571aedb 100644 --- a/backends/irc/__init__.py +++ b/backends/irc/__init__.py @@ -72,6 +72,7 @@ class IrcThread(threading.Thread): def run(self): ircname = self.getname() + print_log("joining IRC") while not self.processor.shared.stopped(): try: @@ -80,6 +81,7 @@ class IrcThread(threading.Thread): s.settimeout(0.1) except: s.close() + print_log("IRC: reconnect in 10 s") time.sleep(10) continue @@ -114,6 +116,7 @@ class IrcThread(threading.Thread): line = line.strip('\r') if not line: continue + # print_log("<--", line) line = line.split() if line[0] == 'PING': out_msg.append('PONG ' + line[1] + '\n')