Logger only prints internal errors

This commit is contained in:
Manu Mtz-Almeida
2015-06-06 17:24:16 +02:00
parent 70325deb98
commit dde06a07f0
3 changed files with 4 additions and 3 deletions

View File

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