Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 1119337 - make retry() output more readable. r=pmoore
Browse files Browse the repository at this point in the history
  • Loading branch information
gerva committed Jan 8, 2015
1 parent d736ef8 commit 9ed9909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/util/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def retry(action, attempts=5, sleeptime=60, max_sleeptime=5 * 60,
while n <= attempts:
try:
log.info("retry: Calling %s with args: %s, kwargs: %s, "
"attempt #%d" % (action, str(args), str(kwargs), n))
"attempt #%d" % (action.__name__, str(args), str(kwargs), n))
return action(*args, **kwargs)
except retry_exceptions:
log.debug("retry: Caught exception: ", exc_info=True)
Expand Down

0 comments on commit 9ed9909

Please sign in to comment.