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

always log error responses with error level #1963

Merged
merged 4 commits into from
Sep 29, 2020
Merged

Conversation

filipw
Copy link
Member

@filipw filipw commented Sep 28, 2020

At the moment an exception from an endpoint is only logged when debug level is enabled.
This leads to quite frustrating troubleshooting situations - when people experience errors on e.g. completion or code actions normally their log doesn't show any errors, until they enable debug level. On debug level, on the other hand, there is a ton of logs produced though, so often the error gets cropped anyway as it's tedious to copy the massive log stack.

This change adds automatic logging of unsuccessful (errored) endpoint responses at error level.
This guarantees that any exceptions are automatically visible even at default logging level.

@JoeRobich JoeRobich merged commit db94860 into master Sep 29, 2020
@filipw filipw deleted the feature/endpoint-error branch September 30, 2020 16:51
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.

2 participants