removing log injection (#2277)

Co-authored-by: thinkerou <thinkerou@gmail.com>
This commit is contained in:
Manuel Alonso
2020-03-07 14:51:33 +01:00
committed by GitHub
parent 1d055af1bc
commit a71af9c144
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ var defaultLogFormatter = func(param LogFormatterParams) string {
// Truncate in a golang < 1.8 safe way
param.Latency = param.Latency - param.Latency%time.Second
}
return fmt.Sprintf("[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %s\n%s",
return fmt.Sprintf("[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %#v\n%s",
param.TimeStamp.Format("2006/01/02 - 15:04:05"),
statusColor, param.StatusCode, resetColor,
param.Latency,