store a runtime.Frame in Entry instead of the caller function name

This commit is contained in:
David Bariod
2018-10-28 10:12:11 +01:00
parent 975c406ddb
commit ec57031db1
4 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []strin
caller := ""
if entry.HasCaller() {
caller = fmt.Sprintf(" %s()", entry.Caller)
caller = fmt.Sprintf(" %s()", entry.Caller.Function)
}
if f.DisableTimestamp {