mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1290620 - Make mach taskgraph
honor mach logging settings; r=dustin
Before, it ignored mach logging settings passed via command line arguments. MozReview-Commit-ID: CNckQHrOdX9 --HG-- extra : rebase_source : b4b190e8e2d073e8932799c8d8bedf49b5f3cfd8
This commit is contained in:
parent
526180e419
commit
e2deca67fe
@ -184,12 +184,15 @@ class MachCommands(MachCommandBase):
|
||||
mach timestamp.
|
||||
"""
|
||||
# remove the old terminal handler
|
||||
self.log_manager.replace_terminal_handler(None)
|
||||
old = self.log_manager.replace_terminal_handler(None)
|
||||
|
||||
# re-add it, with level and fh set appropriately
|
||||
if not quiet:
|
||||
level = logging.DEBUG if verbose else logging.INFO
|
||||
self.log_manager.add_terminal_logging(fh=sys.stderr, level=level)
|
||||
self.log_manager.add_terminal_logging(
|
||||
fh=sys.stderr, level=level,
|
||||
write_interval=old.formatter.write_interval,
|
||||
write_times=old.formatter.write_times)
|
||||
|
||||
# all of the taskgraph logging is unstructured logging
|
||||
self.log_manager.enable_unstructured()
|
||||
|
Loading…
Reference in New Issue
Block a user