1
0

Add more logging to web handler methods

This commit is contained in:
kolaente
2020-02-08 22:45:38 +01:00
parent d84a160054
commit 1c3b35fa6f
41 changed files with 407 additions and 127 deletions

View File

@ -104,5 +104,9 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
ctx.Response().Header().Set("x-pagination-result-count", strconv.FormatInt(int64(resultCount), 10))
ctx.Response().Header().Set("Access-Control-Expose-Headers", "x-pagination-total-pages, x-pagination-result-count")
return ctx.JSON(http.StatusOK, result)
err = ctx.JSON(http.StatusOK, result)
if err != nil {
return HandleHTTPError(err, ctx)
}
return err
}