From aca1e06e2d4cabd0a5115d39fa9b1f03119e0331 Mon Sep 17 00:00:00 2001 From: zjowowen Date: Wed, 2 Nov 2022 15:59:14 +0800 Subject: [PATCH] Minor change. --- ding/envs/env_manager/subprocess_env_manager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ding/envs/env_manager/subprocess_env_manager.py b/ding/envs/env_manager/subprocess_env_manager.py index 95240d5590..6fa9c9081e 100644 --- a/ding/envs/env_manager/subprocess_env_manager.py +++ b/ding/envs/env_manager/subprocess_env_manager.py @@ -397,8 +397,10 @@ def reset(self, reset_param: Optional[Dict] = None) -> None: self._check_data({env_id: ret}) self._env_seed[env_id] = None # seed only use once except BaseException as e: - logging.warning("subprocess reset set seed failed, ignore and continue...") - logging.warning("subprocess exception traceback: \n" + traceback.format_exc()) + logging.warning( + "subprocess reset set seed failed, ignore and continue... \n subprocess exception traceback: \n" + + traceback.format_exc() + ) self._env_states[env_id] = EnvState.RESET reset_thread = PropagatingThread(target=self._reset, args=(env_id, )) reset_thread.daemon = True @@ -440,7 +442,7 @@ def reset_fn(): reset_fn() return except BaseException as e: - logging.warning("subprocess exception traceback: \n" + traceback.format_exc()) + logging.info("subprocess exception traceback: \n" + traceback.format_exc()) if self._retry_type == 'renew' or isinstance(e, pickle.UnpicklingError): self._pipe_parents[env_id].close() if self._subprocesses[env_id].is_alive():