mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Move running process log line to debug level (#2565)
This commit is contained in:
parent
7cfede5b83
commit
64a45dc6a6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue