Move running process log line to debug level (#2565)

This commit is contained in:
Otto Winter 2021-10-20 20:15:09 +02:00 committed by Jesse Hills
parent 95593eeeab
commit 996ec59d28
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -178,7 +178,7 @@ def run_external_command(
orig_argv = sys.argv orig_argv = sys.argv
orig_exit = sys.exit # mock sys.exit orig_exit = sys.exit # mock sys.exit
full_cmd = " ".join(shlex_quote(x) for x in cmd) full_cmd = " ".join(shlex_quote(x) for x in cmd)
_LOGGER.info("Running: %s", full_cmd) _LOGGER.debug("Running: %s", full_cmd)
orig_stdout = sys.stdout orig_stdout = sys.stdout
sys.stdout = RedirectText(sys.stdout, filter_lines=filter_lines) sys.stdout = RedirectText(sys.stdout, filter_lines=filter_lines)
@ -214,7 +214,7 @@ def run_external_command(
def run_external_process(*cmd, **kwargs): def run_external_process(*cmd, **kwargs):
full_cmd = " ".join(shlex_quote(x) for x in cmd) full_cmd = " ".join(shlex_quote(x) for x in cmd)
_LOGGER.info("Running: %s", full_cmd) _LOGGER.debug("Running: %s", full_cmd)
filter_lines = kwargs.get("filter_lines") filter_lines = kwargs.get("filter_lines")
capture_stdout = kwargs.get("capture_stdout", False) capture_stdout = kwargs.get("capture_stdout", False)