Commit ef3c7c12 authored by astaxie's avatar astaxie

fix the variable

parent 88caf1ed
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment