fix: improve subprocess logging

- show subprocess.run call on DEBUG loglevel

🤖
This commit is contained in:
Sebastian Mark 2023-12-20 14:00:13 +01:00
parent 9c1fa801e0
commit 16bc0974e1

View file

@ -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