mirror of
https://github.com/nabbar/golib.git
synced 2025-11-03 01:43:40 +08:00
Fix issue #52
This commit is contained in:
@@ -353,10 +353,10 @@ func (level Level) logDetails(message string, data interface{}, err error, field
|
||||
|
||||
tags[tagTime] = level.String()
|
||||
|
||||
if filetrace && level != InfoLevel {
|
||||
if filetrace && curLevel == DebugLevel {
|
||||
frame := getFrame()
|
||||
tags[tagCaller] = frame.Function
|
||||
tags[tagFile] = frame.File
|
||||
tags[tagFile] = strings.Replace(frame.File, filterPkg, "", -1)
|
||||
tags[tagLine] = frame.Line
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user