comparison server/dump.py @ 129:de950be796dd

log errors too
author Matt Johnston <matt@ucc.asn.au>
date Thu, 11 Oct 2012 20:41:52 +0800
parents 6c18e0d12276
children
comparison
equal deleted inserted replaced
119:81591bdfa92c 129:de950be796dd
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