Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(logger zerolog.Logger) echo.HTTPErrorHandler
Handler is a modified version of echo's own DefaultHTTPErrorHandler function. It allows us to do the following: - log a committed response, both that return an error, and ones that don't - log all internal errors without exposing them to the client - modify the response json to also include the status code in the response body
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.