소스 검색

Fixed format with %v

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 9 년 전
부모
커밋
c7a42f4800
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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