137 unmodified lines138139140141141142143144137 unmodified lines current = {} else: current = {} current[str(step_id)] += f": {msg}" current[str(step_id)] = f"{msg}" with open(log_file_path, "w") as f: json.dump(current, f, indent=2)