Skip to content

Commit

Permalink
fix(server): access log rename elapsed to took
Browse files Browse the repository at this point in the history
  • Loading branch information
cshum committed Dec 17, 2021
1 parent 5f04bac commit bb9b710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (s *Server) accessLogHandler(next http.Handler) http.Handler {
zap.String("uri", r.URL.RequestURI()),
zap.String("ip", RealIP(r)),
zap.String("user-agent", r.UserAgent()),
zap.Duration("elapsed", time.Since(start)),
zap.Duration("took", time.Since(start)),
)
})
}

0 comments on commit bb9b710

Please sign in to comment.