Commit d0e54119 authored by Łukasz Nowak's avatar Łukasz Nowak

Silence another print.

parent 12345392
...@@ -58,13 +58,14 @@ def sigterm_handler(signal, frame): ...@@ -58,13 +58,14 @@ def sigterm_handler(signal, frame):
signal.signal(signal.SIGTERM, sigterm_handler) signal.signal(signal.SIGTERM, sigterm_handler)
import logging
def safeRpcCall(function, *args): def safeRpcCall(function, *args):
retry = 64 retry = 64
while True: while True:
try: try:
return function(*args) return function(*args)
except (socket.error, xmlrpclib.ProtocolError), e: except (socket.error, xmlrpclib.ProtocolError), e:
print >>sys.stderr, e logging.warning(e)
pprint.pprint(args, file(function._Method__name, 'w')) pprint.pprint(args, file(function._Method__name, 'w'))
time.sleep(retry) time.sleep(retry)
retry += retry >> 1 retry += retry >> 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment