diff --git a/webservice/webservice.py b/webservice/webservice.py index 4905d7b43efac8d52d276e54124879f68049be94..6e89c1ebe9f7a0c166ab9db4c187eccd6c0963d1 100644 --- a/webservice/webservice.py +++ b/webservice/webservice.py @@ -484,7 +484,8 @@ async def run_action(job_db, cmd, mode, proposal, run, rid) -> str: retcode, stdout, stderr = await run_proc_async(cmd) if retcode != 0: logging.error(Errors.JOB_LAUNCH_FAILED.format(cmd, retcode)) - logging.error(f"{stdout=}, {stderr=}") + logging.error(f"Failed process stdout:\n%s\nFailed process stderr:\n%s", + stdout.decode(errors='replace'), stderr.decode(errors='replace')) return Errors.JOB_LAUNCH_FAILED.format(cmd, retcode) if "DARK" in cmd: