Closed Bug 905885 Opened 11 years ago Closed 11 years ago

Log sendchange command in release runner

Categories

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

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: nthomas)

Details

Attachments

(2 files)

Attached patch [tools] Fix typoSplinter Review
Accidental reference to logging module rather than logging instance.
Attachment #791055 - Flags: review?(rail)
Attachment #791055 - Flags: review?(rail) → review+
https://hg.mozilla.org/build/tools/rev/6709ebcca89e

release-runner upgraded and restarted.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
This isn't working for some reason.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Here's a theory, arm your weapons to shoot it down:
1, INFO messages aren't output by default, it has to be WARNING or higher.
2, Early in release-runner we have
     logging.basicConfig(format="%(asctime)s - %(levelname)s - %(message)s")
     log = logging.getLogger(__name__)
   And later in main() there is a setLevel on that log object.
3, Other logging objects are created in imported modules (eg sanity.py for the 
   sendchange), and the setLevel in 2 doesn't act on them (so no INFO shown)

The fix here is to do the basicConfig() call later, when we know what the level should be, and that affects all logging objects. At least it does in a mock up of this situation.
Attachment #796528 - Flags: review?(rail)
Attachment #796528 - Flags: review?(rail) → review+
Updated tools checkout at bm81:/builds/releaserunner/tools.
Unfortunately this is still not working, need to find a way to debug closer to the actual code.

Unrelated follow up to fix a typo in the last patch (top_level instead of log_level):
  https://hg.mozilla.org/build/tools/rev/df3b2dc94840
This is working now. I probably needed to restart release runner at comment #5.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 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: