Merge 23aaf45871c516aaf83f35e1be7698561741cc2f into ae9f03e6e80212e45427f811683f2a512cc8f506

This commit is contained in:
AT 2017-11-14 04:02:51 +00:00 committed by GitHub
commit c47b313a7d

View File

@ -5,6 +5,7 @@
package gin package gin
import ( import (
"bytes"
"fmt" "fmt"
"io" "io"
"os" "os"
@ -100,7 +101,11 @@ func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc {
comment := c.Errors.ByType(ErrorTypePrivate).String() comment := c.Errors.ByType(ErrorTypePrivate).String()
if raw != "" { if raw != "" {
path = path + "?" + raw var buffer bytes.Buffer
buffer.WriteString(path)
buffer.WriteString("?")
buffer.WriteString(raw)
path = buffer.String()
} }
fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %s\n%s", fmt.Fprintf(out, "[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %s\n%s",