mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:10:55 +00:00
fix the variable
This commit is contained in:
parent
88caf1ed70
commit
ef3c7c127b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user