2288ac86 by astaxie

remove the deep Caller

1 parent 8d797a4a
...@@ -155,9 +155,6 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { ...@@ -155,9 +155,6 @@ 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 + 1) 157 _, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth + 1)
158 if !ok {
159 _, file, line, ok = runtime.Caller(bl.loggerFuncCallDepth)
160 }
161 if ok { 158 if ok {
162 _, filename := path.Split(file) 159 _, filename := path.Split(file)
163 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!