Skip to content

Commit

Permalink
feat: adding x-forwarded-for
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Aug 26, 2023
1 parent 1146892 commit 76df46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func NewWithConfig(logger *slog.Logger, config Config) echo.MiddlewareFunc {

attributes := []slog.Attr{
slog.Time("time", end),
slog.String("latency", latency.String()),
slog.Duration("latency", latency),
slog.String("method", method),
slog.String("path", path),
slog.Int("status", status),
Expand Down

0 comments on commit 76df46e

Please sign in to comment.