소스 검색

Log: runtime caller set to 3

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 9 년 전
부모
커밋
b2765095a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      log/log.go

+ 1 - 1
log/log.go

@@ -343,7 +343,7 @@ func (l *Logger) log(v Lvl, format string, args ...interface{}) {
 	buf := l.bufferPool.Get().(*bytes.Buffer)
 	buf.Reset()
 	defer l.bufferPool.Put(buf)
-	_, file, line, _ := runtime.Caller(2)
+	_, file, line, _ := runtime.Caller(3)
 
 	if v >= l.level || v == 0 {
 		message := ""