Skip to content

Commit

Permalink
Minor change.
Browse files Browse the repository at this point in the history
  • Loading branch information
zjowowen committed Nov 2, 2022
1 parent a0671f4 commit aca1e06
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ding/envs/env_manager/subprocess_env_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit aca1e06

Please sign in to comment.