Skip to content

Commit

Permalink
chore: fix logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 20, 2024
1 parent 919645a commit 3693afe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ func getDefaultErrorHandler() echo.HTTPErrorHandler {

if errors.Is(err, context.Canceled) {
log.Error("request timeout",
zap.Int("code", http.StatusInternalServerError),
zap.Any("message", "request timeout"),
zap.String("message", err.Error()),
zap.String("path", c.Request().URL.Path),
zap.String("query", c.Request().URL.RawQuery),
zap.String("cf-ray", c.Request().Header.Get(cf.HeaderRequestID)),
Expand Down

0 comments on commit 3693afe

Please sign in to comment.