Skip to content

Commit 6fc3bad

Browse files
committed
Don't unnecessarily capture log output of CSET bake
This allows the CSET bake logs to be shown while it is running, and also when it succeeds.
1 parent 542917b commit 6fc3bad

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/CSET/_workflow_utils/run_cset_recipe.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,9 @@ def run_recipe_steps():
108108

109109
logging.info("Running %s", " ".join(command))
110110
try:
111-
subprocess.run(command, check=True, env=subprocess_env(), capture_output=True)
111+
subprocess.run(command, check=True, env=subprocess_env())
112112
except subprocess.CalledProcessError as err:
113-
logging.exception(
114-
"cset bake exited with non-zero code %s.\nstdout: %s\nstderr: %s",
115-
err.returncode,
116-
err.stdout.decode(sys.stdout.encoding),
117-
err.stderr.decode(sys.stderr.encoding),
118-
)
113+
logging.exception("cset bake exited with non-zero code %s.", err.returncode)
119114
raise
120115
create_diagnostic_archive(output_directory())
121116

0 commit comments

Comments
 (0)