Closed Bug 1119337 Opened 9 years ago Closed 9 years ago

make retry() output more readable

Categories

(Release Engineering :: Release Automation: Other, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: massimo, Unassigned)

Details

Attachments

(2 files)

Follow up of https://bugzilla.mozilla.org/show_bug.cgi?id=701099#c4

A simple change, retry should print the "action.__name__" instead of "action" 

So that we have log messages like this:

retry: Calling rmtree with args: ('/Users/mgerva/work/git/build/mozharness/build',), kwargs: {}, attempt #1

instead of:
retry: Calling <function rmtree at 0x100645050> with args: ('/Users/mgerva/work/git/build/mozharness/build',), kwargs: {}, attempt #1
Attachment #8546010 - Flags: review?(pmoore)
Attachment #8546011 - Attachment description: [mozharness] Bug 701099 - improve log output of retry, and some consumers of it - make retry output more readable.patch → [mozharness] Bug 1119337 - improve log output of retry, and some consumers of it - make retry output more readable.patch
Attachment #8546011 - Flags: checked-in+
Comment on attachment 8546010 [details] [diff] [review]
[tools] make retry() output more readable.patch

Review of attachment 8546010 [details] [diff] [review]:
-----------------------------------------------------------------

awesome, big improvement!
Attachment #8546010 - Flags: review?(pmoore) → review+
Comment on attachment 8546010 [details] [diff] [review]
[tools] make retry() output more readable.patch

Thanks pete!
Attachment #8546010 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: