Skip to content

Conversation

J-Rocke
Copy link
Member

@J-Rocke J-Rocke commented Feb 5, 2024

It does not feel right to decide the statusCode in a log middleware but in this case i think it is warranted.
The alternative would be to move it to an extra layer which seems a bit over the top for now.

@J-Rocke J-Rocke requested a review from a team February 5, 2024 12:35
Copy link
Contributor

@jrasko jrasko left a comment

Choose a reason for hiding this comment

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

maybe we should add a comment that explains why we set a response code in this middleware

@jrasko jrasko requested a review from a team February 5, 2024 13:16
@J-Rocke J-Rocke merged commit 3c38abe into master Feb 6, 2024
@J-Rocke J-Rocke deleted the panic_500 branch February 6, 2024 08:56
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.

3 participants