From 4a4d48ddb96f20c4ab8894520235e4020556c083 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 22 Feb 2024 00:11:06 +0000 Subject: [PATCH] Fix error when logging exception. (#756) Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/756 Co-authored-by: Thomas E Lackey Co-committed-by: Thomas E Lackey --- stack_orchestrator/deploy/webapp/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack_orchestrator/deploy/webapp/util.py b/stack_orchestrator/deploy/webapp/util.py index 9dbc19c4..6cfdb118 100644 --- a/stack_orchestrator/deploy/webapp/util.py +++ b/stack_orchestrator/deploy/webapp/util.py @@ -46,7 +46,7 @@ def logged_cmd(log_file, *vargs): result.check_returncode() return result.stdout.decode() except Exception as err: - print(result.stderr.decode(), log_file) + print(str(err), file=log_file) raise err