From 16bc0974e12fce13c834ccfbe702de68591ac9f4 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Wed, 20 Dec 2023 14:00:13 +0100 Subject: [PATCH] fix: improve subprocess logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - show subprocess.run call on DEBUG loglevel 🤖 --- lib/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.py b/lib/helper.py index 39ed0d9..54970a8 100644 --- a/lib/helper.py +++ b/lib/helper.py @@ -15,7 +15,7 @@ def run_subprocess(command: str, workdir: str) -> bool: bool: False if subprocess fails """ try: - subprocess.run(command, cwd=workdir, shell=True, text=True) + log.debug(subprocess.run(command, cwd=workdir, shell=True, text=True)) except subprocess.CalledProcessError: return False