Explorar el Código

Fixed format with %v

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana hace 9 años
padre
commit
c7a42f4800
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      log/log.go

+ 1 - 1
log/log.go

@@ -213,7 +213,7 @@ func (l *Logger) log(v Level, format string, args ...interface{}) {
 
 	if v >= l.level {
 		if format == "" && len(args) > 0 {
-			args[0] = fmt.Sprintf("%s|%s|%s", l.levels[v], l.prefix, args[0])
+			args[0] = fmt.Sprintf("%s|%s|%v", l.levels[v], l.prefix, args[0])
 			fmt.Fprintln(l.out, args...)
 		} else {
 			// TODO: Improve performance