comparison server/dump.py @ 429:649648020123

log errors too
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Oct 2012 20:41:52 +0800
parents 1a5f2449f760
children
comparison
equal deleted inserted replaced
418:1603d0310dd0 429:649648020123
143 for a in args: 143 for a in args:
144 sock.send('%s\n' % a) 144 sock.send('%s\n' % a)
145 145
146 while True: 146 while True:
147 l = readline(sock) 147 l = readline(sock)
148 print l 148 if not l:
149 print '.',
150 sys.stdout.flush()
151 else:
152 print l
149 153
150 testcount = 0 154 testcount = 0
151 155
152 def sleep_for(secs): 156 def sleep_for(secs):
153 until = monotonic_time() + secs 157 until = monotonic_time() + secs