From f00a7c19243d706478ad302629d4cfa8c5f5c1dd Mon Sep 17 00:00:00 2001 From: LBolte29 <97528701+LBolte29@users.noreply.github.com> Date: Tue, 15 Mar 2022 12:27:45 +0100 Subject: [PATCH] added script as appName (#1483) --- terminal.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/terminal.py b/terminal.py index 44548ff0809..78cc47a398c 100644 --- a/terminal.py +++ b/terminal.py @@ -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: