From ebcaaca360702bae6bcb9bf1f2adc9cefc97c0a9 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Tue, 15 May 2018 17:11:32 -0600 Subject: [PATCH 1/2] stdout and stderr can be displayed in debug mode https://github.com/home-assistant/home-assistant/pull/14465#pullrequestreview-120385224 --- source/_components/shell_command.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_components/shell_command.markdown b/source/_components/shell_command.markdown index 8c03c7c7af23..fb800f8d7ed8 100644 --- a/source/_components/shell_command.markdown +++ b/source/_components/shell_command.markdown @@ -33,6 +33,8 @@ The commands can be dynamic, using templates to insert values for arguments. Whe Any service data passed into the service call to activate the shell command will be available as a variable within the template. +`stdout` and `stderr` output from the command are both captured and can be displayed by setting the [log level](/components/logger/) to debug. + ```yaml # Apply value of a GUI slider to the shell_command From 1e04f71a793092914454b457d22673e77a746698 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Wed, 16 May 2018 09:00:20 -0600 Subject: [PATCH 2/2] displayed -> logged --- source/_components/shell_command.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/shell_command.markdown b/source/_components/shell_command.markdown index fb800f8d7ed8..07a10b1261b2 100644 --- a/source/_components/shell_command.markdown +++ b/source/_components/shell_command.markdown @@ -33,7 +33,7 @@ The commands can be dynamic, using templates to insert values for arguments. Whe Any service data passed into the service call to activate the shell command will be available as a variable within the template. -`stdout` and `stderr` output from the command are both captured and can be displayed by setting the [log level](/components/logger/) to debug. +`stdout` and `stderr` output from the command are both captured and will be logged by setting the [log level](/components/logger/) to debug. ```yaml