[symbolize] Report missing binary as debug info
Change-Id: Ide890a662011d6663ac729e79c7d8865758280f0
diff --git a/symbolize/filter.go b/symbolize/filter.go
index bcdf8b6..1b5e95f 100644
--- a/symbolize/filter.go
+++ b/symbolize/filter.go
@@ -224,6 +224,10 @@
logger.Warningf(f.ctx, "on line %d: %v", f.lineno, err)
}
+func (f *filterVisitor) debug(err error) {
+ logger.Debugf(f.ctx, "on line %d: %v", f.lineno, err)
+}
+
func (f *filterVisitor) VisitBt(elem *BacktraceElement) {
// From //zircon/docs/symbolizer_markup.md:
@@ -247,7 +251,9 @@
info, err := f.filter.findInfoForAddress(vaddr)
if err != nil {
// Don't be noisy about missing objects.
- if _, ok := err.(*missingObjError); !ok {
+ if _, ok := err.(*missingObjError); ok {
+ f.debug(err)
+ } else {
f.warn(err)
}
}