update the log call deep
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment