-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(zjow): add trackback log for subprocess env manager #534
Conversation
Codecov Report
@@ Coverage Diff @@
## main #534 +/- ##
==========================================
- Coverage 85.48% 85.32% -0.17%
==========================================
Files 526 526
Lines 43300 43305 +5
==========================================
- Hits 37016 36950 -66
- Misses 6284 6355 +71
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -398,6 +398,7 @@ def reset(self, reset_param: Optional[Dict] = None) -> None: | |||
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()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge two logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@@ -439,6 +440,7 @@ def reset_fn(): | |||
reset_fn() | |||
return | |||
except BaseException as e: | |||
logging.warning("subprocess exception traceback: \n" + traceback.format_exc()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use warning, rather than info, they are catched exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
#532