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

feat(agent): add debug logs #3675

Merged
merged 2 commits into from
Feb 22, 2024
Merged

feat(agent): add debug logs #3675

merged 2 commits into from
Feb 22, 2024

Conversation

schoren
Copy link
Collaborator

@schoren schoren commented Feb 22, 2024

This PR adds debug logs so it's easier to identify issues, mainly when talking with the control plane.

It also fixes the logger configuration to correctly display debug logs when passing the -v flag

Changes

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

Add your loom video here if your work can be visualized

Copy link

vercel bot commented Feb 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 7:17pm

return
}

reconnected, err := c.handleDisconnectionError(err)
if reconnected {
logger.Debug("reconnected to data store connection stream")
Copy link
Member

Choose a reason for hiding this comment

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

I think this one should be a warning instead of debug, especially because I want to know that the error was handled.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

@mathnogueira mathnogueira left a comment

Choose a reason for hiding this comment

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

One comment that is valid for all workers that reconnect

Copy link
Member

@mathnogueira mathnogueira left a comment

Choose a reason for hiding this comment

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

Thanks for changing it

@schoren schoren merged commit f698242 into main Feb 22, 2024
39 checks passed
@schoren schoren deleted the agent-debug-log branch February 22, 2024 19:35
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.

4 participants