mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 905490 - Avoid "mach python" logging the python command. r=gps
This commit is contained in:
parent
1660a86961
commit
5cdc0fbec2
@ -56,6 +56,8 @@ class MachCommands(MachCommandBase):
|
||||
description='Run Python.')
|
||||
@CommandArgument('args', nargs=argparse.REMAINDER)
|
||||
def python(self, args):
|
||||
# Avoid logging the command
|
||||
self.log_manager.terminal_handler.setLevel(logging.CRITICAL)
|
||||
return self.run_process([self.python_executable] + args,
|
||||
pass_thru=True, # Allow user to run Python interactively.
|
||||
ensure_exit_code=False, # Don't throw on non-zero exit code.
|
||||
|
Loading…
Reference in New Issue
Block a user