Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions launch/launch/actions/execute_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def __init__(
:param: output_format for logging each output line, supporting `str.format()`
substitutions with the following keys in scope: `line` to reference the raw
output line and `this` to reference this action instance.
Overridden externally by the OVERRIDE_LAUNCH_OUTPUT_FORMAT envvar value.
:param: log_cmd if True, prints the final cmd before executing the
process, which is useful for debugging when substitutions are
involved.
Expand All @@ -199,7 +200,12 @@ def __init__(
self.__output = normalize_to_list_of_substitutions(tmp_output)
else:
self.__output = tmp_output

self.__output_format = output_format
# Check if an environment variable is set and override anything given as argument
self.__output_format = os.environ.get(
'OVERRIDE_LAUNCH_OUTPUT_FORMAT', self.__output_format
)

self.__log_cmd = log_cmd
self.__cached_output = cached_output
Expand Down