Skip to content

Commit d25a53d

Browse files
authored
Log build ID in local symbolization error messages. (google#679)
This helps diagnose symbolization issues.
1 parent 6f57359 commit d25a53d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/symbolizer/symbolizer.go

+3
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ func newMapping(prof *profile.Profile, obj plugin.ObjTool, ui plugin.UI, force b
325325
}
326326

327327
name := filepath.Base(m.File)
328+
if m.BuildID != "" {
329+
name += fmt.Sprintf(" (build ID %s)", m.BuildID)
330+
}
328331
f, err := obj.Open(m.File, m.Start, m.Limit, m.Offset)
329332
if err != nil {
330333
ui.PrintErr("Local symbolization failed for ", name, ": ", err)

0 commit comments

Comments
 (0)