Skip to content

Commit

Permalink
fix: remove the unused whitespace from Logger middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfone committed Jan 1, 2021
1 parent 5209889 commit 790625f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func Logger(config ...LoggerConfig) Middleware {
}

if errmsg == "" {
ctx.Logger().Infof("addr=%s, code=%d, method=%s, path=%s%s%s, starttime=%d, cost=%s",
ctx.Logger().Infof("addr=%s, code=%d, method=%s, path=%s%s%s, starttime=%d, cost=%s",
req.RemoteAddr, code, req.Method, req.URL.RequestURI(), bodyFmt, bodyCnt, start.Unix(), cost)
} else {
ctx.Logger().Errorf("addr=%s, code=%d, method=%s, path=%s%s%s, starttime=%d, cost=%s, err=%s",
Expand Down

0 comments on commit 790625f

Please sign in to comment.