git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
9baf5ef
)
add log messages for irc
author
ThomasV
<thomasv1@gmx.de>
Fri, 7 Mar 2014 09:10:57 +0000 (10:10 +0100)
committer
ThomasV
<thomasv1@gmx.de>
Fri, 7 Mar 2014 09:10:57 +0000 (10:10 +0100)
backends/irc/__init__.py
patch
|
blob
|
history
diff --git
a/backends/irc/__init__.py
b/backends/irc/__init__.py
index
8dae94e
..
571aedb
100644
(file)
--- 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')