Skip to content

Commit

Permalink
add path for the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyslav2 committed Dec 9, 2023
1 parent fee98bc commit 034f481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/middleware/log_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func LogRequests(next echo.HandlerFunc) echo.HandlerFunc {
raw, _ := io.ReadAll(c.Request().Body)
c.Request().Body = io.NopCloser(bytes.NewReader(raw))
log.Trace().Interface("headers", c.Request().Header).Msg("headers")
log.Trace().Interface("body", string(raw)).Msg("raw body")
log.Trace().Str("path", c.Request().RequestURI).Interface("body", string(raw)).Msg("raw body")
}
// next handler
return next(c)
Expand Down

0 comments on commit 034f481

Please sign in to comment.