Skip to content

Commit

Permalink
No repeat call c.Writer.Status()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Sedykh committed Jul 8, 2014
1 parent c224bf8 commit 9880758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Logger() HandlerFunc {
latency := end.Sub(start)
stdlogger.Printf("[GIN] %v |%s %3d %s| %12v | %s %4s %s\n",
end.Format("2006/01/02 - 15:04:05"),
color, c.Writer.Status(), reset,
color, code, reset,
latency,
requester,
c.Req.Method, c.Req.URL.Path,
Expand Down

0 comments on commit 9880758

Please sign in to comment.