304beaf8 by astaxie

update the log call deep

1 parent 2288ac86
...@@ -154,7 +154,7 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { ...@@ -154,7 +154,7 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error {
154 lm := new(logMsg) 154 lm := new(logMsg)
155 lm.level = loglevel 155 lm.level = loglevel
156 if bl.enableFuncCallDepth { 156 if bl.enableFuncCallDepth {
157 _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth + 1) 157 _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth)
158 if ok { 158 if ok {
159 _, filename := path.Split(file) 159 _, filename := path.Split(file)
160 lm.msg = fmt.Sprintf("[%s:%d] %s", filename, line, msg) 160 lm.msg = fmt.Sprintf("[%s:%d] %s", filename, line, msg)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!