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

chore: add engine logs for failed queries #5827

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Sep 26, 2023

This can be massively helpful for debugging - especially when debugging weird failures.

The errors are only added as debug level, since these errors generally aren't actually critical to the server.

This can be massively helpful for debugging - especially when debugging
weird failures.

The errors are only added as debug level, since these errors generally
aren't actually critical to the server.

Signed-off-by: Justin Chadwell <justin@dagger.io>
Copy link
Contributor

@vito vito left a comment

Choose a reason for hiding this comment

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

Not blocking, but curious what type of error this helped with. Maybe we've troubleshooting things in different ways. I guess I always see the error bubble up to the client, and don't spend a lot of time looking at engine logs. (OK I do, but always grepped for !!! which I sprinkle in one-off logs while troubleshooting.)

@jedevc
Copy link
Member Author

jedevc commented Sep 26, 2023

I think I was seeing weird differences in error messages between dagger run go run main.go and go run main.go - and just ended up wanting the full error in the dagger logs.

At some point, I think we can also recover the stack traces in the dagger engine, which we can't do in the client (I think, since the error is already formatted at that point), though I got a little stuck with doing that - so this was a fine stopgap till then.

@jedevc jedevc merged commit 5066493 into dagger:main Sep 26, 2023
39 checks passed
@gerhard gerhard added this to the v0.8.8 milestone Oct 11, 2023
@jedevc jedevc deleted the log-failed-queries branch November 14, 2023 15:34
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