Why are there '/n' carriage returns at the end of these three log lines? Can I propose removing them?
Opened this issue · 0 comments
brianoflondon commented
Line 159 in 880cecd
Any idea why we have '\n' at the end of these three log lines ? Looks ugly in my logs.
if showMsg:
if call_retry:
log.warning("Retry RPC Call on node: %s (%d/%d) \n" % (self.url, cnt, self.num_retries_call))
else:
log.warning("Lost connection or internal error on node: %s (%d/%d) \n" % (self.url, cnt, self.num_retries))
if not sleep:
return
if cnt < 1:
sleeptime = 0
elif cnt < 10:
sleeptime = (cnt - 1) * 1.5 + 0.5
else:
sleeptime = 10
if sleeptime:
log.warning("Retrying in %d seconds\n" % sleeptime)
time.sleep(sleeptime)