This commit is contained in:
Nicolas JUHEL
2020-08-14 13:11:56 +02:00
parent a3b3fa1e5f
commit 32ad79d92a
9 changed files with 58 additions and 27 deletions

View File

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