call_subprocess: drop useless command_level arg

always called with debug
This commit is contained in:
Xavier Fernandez 2016-02-21 15:22:34 +01:00 committed by Xavier Fernandez
parent f9429b0a98
commit 68dc9c0495
3 changed files with 4 additions and 5 deletions

View File

@ -424,7 +424,6 @@ class InstallRequirement(object):
egg_info_cmd + egg_base_option,
cwd=self.setup_py_dir,
show_stdout=False,
command_level=logging.DEBUG,
command_desc='python setup.py egg_info')
if not self.req:

View File

@ -623,7 +623,7 @@ def unpack_file(filename, location, content_type, link):
def call_subprocess(cmd, show_stdout=True, cwd=None,
on_returncode='raise',
command_level=std_logging.DEBUG, command_desc=None,
command_desc=None,
extra_environ=None, spinner=None):
# This function's handling of subprocess output is confusing and I
# previously broke it terribly, so as penance I will write a long comment
@ -657,7 +657,7 @@ def call_subprocess(cmd, show_stdout=True, cwd=None,
part = '"%s"' % part.replace('"', '\\"')
cmd_parts.append(part)
command_desc = ' '.join(cmd_parts)
logger.log(command_level, "Running command %s", command_desc)
logger.debug("Running command %s", command_desc)
env = os.environ.copy()
if extra_environ:
env.update(extra_environ)

View File

@ -310,7 +310,7 @@ class VersionControl(object):
def run_command(self, cmd, show_stdout=True, cwd=None,
on_returncode='raise',
command_level=logging.DEBUG, command_desc=None,
command_desc=None,
extra_environ=None, spinner=None):
"""
Run a VCS subcommand
@ -320,7 +320,7 @@ class VersionControl(object):
cmd = [self.name] + cmd
try:
return call_subprocess(cmd, show_stdout, cwd,
on_returncode, command_level,
on_returncode,
command_desc, extra_environ,
spinner)
except OSError as e: