added script as appName (#1483)

This commit is contained in:
LBolte29
2022-03-15 12:27:45 +01:00
committed by GitHub
parent a06439c136
commit f00a7c1924

View File

@@ -322,9 +322,9 @@ class TerminalController(BaseController):
self.queue = cmds_with_params.split("/")
def terminal(jobs_cmds: List[str] = None):
def terminal(jobs_cmds: List[str] = None, appName: str = "gst"):
"""Terminal Menu"""
setup_logging("gst")
setup_logging(appName)
logger.info("START")
logger.info("Python: %s", platform.python_version())
logger.info("OS: %s", platform.system())
@@ -527,14 +527,14 @@ def run_scripts(
file_cmds = [" ".join(file_cmds)]
if not test_mode:
terminal(file_cmds)
terminal(file_cmds, appName="gst_script")
# TODO: Add way to track how many commands are tested
else:
if verbose:
terminal(file_cmds)
terminal(file_cmds, appName="gst_script")
else:
with suppress_stdout():
terminal(file_cmds)
terminal(file_cmds, appName="gst_script")
else:
console.print(f"File '{path}' doesn't exist. Launching base terminal.\n")
if not test_mode: