Cosmetic change in logger()

This commit is contained in:
Manu Mtz-Almeida 2015-05-14 04:38:33 +02:00
parent 51a64abe86
commit 3948dac8c4
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func LoggerWithWriter(out io.Writer) HandlerFunc {
methodColor := colorForMethod(method) methodColor := colorForMethod(method)
comment := c.Errors.String() comment := c.Errors.String()
fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %12v | %s |%s %s %-7s %s\n%s", fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %13v | %s |%s %s %-7s %s\n%s",
end.Format("2006/01/02 - 15:04:05"), end.Format("2006/01/02 - 15:04:05"),
statusColor, statusCode, reset, statusColor, statusCode, reset,
latency, latency,