Added debug information

This commit is contained in:
Anton Hvornum 2022-02-12 15:12:40 +01:00
parent f66b5a58c8
commit 006cfdd484
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 6 additions and 1 deletions

View File

@ -422,7 +422,7 @@ class SysCommand:
cmd :Union[str, List[str]],
callbacks :Optional[Dict[str, Callable[[Any], Any]]] = None,
start_callback :Optional[Callable[[Any], Any]] = None,
peak_output :Optional[bool] = False,
peak_output :Optional[bool] = None,
environment_vars :Optional[Dict[str, Any]] = None,
working_directory :Optional[str] = './',
remove_vt100_escape_codes_from_lines :bool = True):
@ -436,6 +436,11 @@ class SysCommand:
self.cmd = cmd
self._callbacks = _callbacks
if peak_output is None:
if storage['arguments'].get('debug'):
peak_output = True
else:
peak_output = False
self.peak_output = peak_output
self.environment_vars = environment_vars
self.working_directory = working_directory