split the file for logs
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -155,7 +155,7 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { | ... | @@ -155,7 +155,7 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { |
| 155 | lm.level = loglevel | 155 | lm.level = loglevel |
| 156 | if bl.enableFuncCallDepth { | 156 | if bl.enableFuncCallDepth { |
| 157 | _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth) | 157 | _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth) |
| 158 | if file == "log.go" && line == 97 { | 158 | if _, filename := path.Split(file); filename == "log.go" && line == 97 { |
| 159 | _, file, line, ok = runtime.Caller(bl.loggerFuncCallDepth + 1) | 159 | _, file, line, ok = runtime.Caller(bl.loggerFuncCallDepth + 1) |
| 160 | } | 160 | } |
| 161 | if ok { | 161 | if ok { | ... | ... |
-
Please register or sign in to post a comment