Bug 905490 - Avoid "mach python" logging the python command. r=gps

This commit is contained in:
Mike Hommey 2013-08-15 23:45:09 +09:00
parent 1660a86961
commit 5cdc0fbec2

View File

@ -56,6 +56,8 @@ class MachCommands(MachCommandBase):
description='Run Python.') description='Run Python.')
@CommandArgument('args', nargs=argparse.REMAINDER) @CommandArgument('args', nargs=argparse.REMAINDER)
def python(self, args): def python(self, args):
# Avoid logging the command
self.log_manager.terminal_handler.setLevel(logging.CRITICAL)
return self.run_process([self.python_executable] + args, return self.run_process([self.python_executable] + args,
pass_thru=True, # Allow user to run Python interactively. pass_thru=True, # Allow user to run Python interactively.
ensure_exit_code=False, # Don't throw on non-zero exit code. ensure_exit_code=False, # Don't throw on non-zero exit code.