7 timestring=time.strftime("%Y-%m-%d-%H-%M-%S")
8 print 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',peername
9 print 'RefreshPeer on %s - starting on %s'%(peername,timestring)
13 result=RefreshPeer(peername)
16 print 'Total duration',finish-start
17 print 'xxxxxxxxxx timers:'
25 def RunInLog (peername):
26 logname="/var/log/refresh-peer-%s.log"%(peername)
27 sys.stdout=open(logname,'a')
33 if __name__ == "__main__":
35 for peername in sys.argv[1:]: