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

Strip response from HTTP error passed to log.exception() #282

Open
mtrunkat opened this issue Feb 2, 2022 · 0 comments
Open

Strip response from HTTP error passed to log.exception() #282

mtrunkat opened this issue Feb 2, 2022 · 0 comments
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@mtrunkat
Copy link
Member

mtrunkat commented Feb 2, 2022

For example, if we catch and log.exception(err, ...) an error thrown by https://github.com/axios/axios, it contains a large error.response object with many circular dependencies. We should strip the whole object or better pick just certain fields (status, body, ...).

@B4nan B4nan added the t-tooling Issues with this label are in the ownership of the tooling team. label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

2 participants