1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 22:11:29 +00:00

fix the variable

This commit is contained in:
astaxie 2014-11-03 16:44:05 +08:00
parent 88caf1ed70
commit ef3c7c127b

View File

@ -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)