Skip to content

Logging errors from server when generating URL #32

Answered by maennchen
sigu asked this question in Q&A
Discussion options

You must be logged in to vote

The current solution stores the reason in the error struct, but does not add it to the error message.

The reason for this is that some errors contain confidential data like client secrets and they should not be logged directly.

We should however add some more details. We can for example add the first element of the error tuple to the error message. Based on your slack message, it would mention that there was an HTTP error behind the scenes.

Since I already have an issue open for revamping the error handling, I added this to the description. #26

To get all information out of the error, you should be able to implement a custom error view in phoenix, where you have access to the whole struct.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sigu
Comment options

Answer selected by sigu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants