Simple StackTrace #1199
antoniomralmeida
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
would it be possible to create an option in the FormatFrame() function of the stacktrace.go program to remove the path from the frame.function and frame.file?
func (sf *stackFormatter) FormatFrame(frame runtime.Frame) {
if sf.nonEmpty {
sf.b.AppendByte('\n')
}
sf.nonEmpty = true
sf.b.AppendString(filepath.Base(frame.Function))
sf.b.AppendByte('\n')
sf.b.AppendByte('\t')
sf.b.AppendString(filepath.Base(frame.File))
sf.b.AppendByte(':')
sf.b.AppendInt(int64(frame.Line))
}
Beta Was this translation helpful? Give feedback.
All reactions