Closed Bug 1374561 Opened 7 years ago Closed 7 years ago

Allow to set log level in mach for every class derived from MozbuildObject

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: andi, Assigned: andi)

References

Details

Attachments

(1 file)

For every functionality/ command that we implement in mach it would be nice to set independently the log level. 

For this my resolution would be to move:

>>    def _set_log_level(self, verbose):
>>        self.log_manager.terminal_handler.setLevel(logging.INFO if not verbose else logging.DEBUG)

From |PackageFrontend| to | MozbuildObject| because every new functionality/ command.
Note that when I said separate patch, I didn't mean a separate bug.
(In reply to Mike Hommey [:glandium] from comment #1)
> Note that when I said separate patch, I didn't mean a separate bug.

I thought we can track it more easy if i add a separate bug for this. Is it ok on your side if i upload it here?
Comment on attachment 8879457 [details]
Bug 1374561 - Allow to set log level in mach for every class derived from MozbuildObject.

https://reviewboard.mozilla.org/r/150768/#review155968
Attachment #8879457 - Flags: review?(mh+mozilla) → review+
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3b36dbe9b2a3
Allow to set log level in mach for every class derived from MozbuildObject. r=glandium
https://hg.mozilla.org/mozilla-central/rev/3b36dbe9b2a3
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: