From ef3c7c127b3bb505d65d9351129102bf8351c7ba Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 3 Nov 2014 16:44:05 +0800 Subject: [PATCH] fix the variable --- logs/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logs/log.go b/logs/log.go index a1964892..89574769 100644 --- a/logs/log.go +++ b/logs/log.go @@ -156,7 +156,7 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { if bl.enableFuncCallDepth { _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth) if file == "log.go" && line == 97 { - _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth + 1) + _, file, line, ok = runtime.Caller(bl.loggerFuncCallDepth + 1) } if ok { _, filename := path.Split(file)