Skip to content
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

fix(controller): Improve error info logging #1864

Merged
merged 5 commits into from
May 20, 2024

Conversation

xingyaoww
Copy link
Collaborator

This PR make sure that error will get logged to state.error.

@@ -228,6 +230,7 @@ async def _step(self):

if self._is_stuck():
await self.report_error('Agent got stuck in a loop')
self.state.error = 'Agent got stuck in a loop'
Copy link
Collaborator

@li-boxuan li-boxuan May 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be part of report_error function?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and pushed a change.

@xingyaoww xingyaoww merged commit 7817d4c into main May 20, 2024
25 checks passed
@xingyaoww xingyaoww deleted the xw/improve-error-log-for-eval branch May 20, 2024 10:42
li-boxuan added a commit to li-boxuan/OpenDevin that referenced this pull request May 21, 2024
* improve error info logging

* Move assignment of self.state.error to report_error function

* only log exception to state, but not to user

---------

Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants