Skip to content

Commit

Permalink
Disable log with unknown module type
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Anh Duong <anh.duong@kyber.network>
  • Loading branch information
vietanhduong committed Dec 30, 2023
1 parent cd4a76a commit 7f34012
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/syms/proc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ func (m *ProcModule) load() {
if utils.IsNil(m.table) {
m.table = &emptyTable{}
}
m.log.WithFields(logrus.Fields{
logfields.ProcModulePath: m.path.GetPath(),
logfields.ProcModuleTableSize: m.table.Size(),
}).Debugf("Loaded symbol table!")
if m.typ != UNKNOWN {
m.log.WithFields(logrus.Fields{
logfields.ProcModulePath: m.path.GetPath(),
logfields.ProcModuleTableSize: m.table.Size(),
}).Debugf("Loaded symbol table!")
}
}()
if m.loaded || m.typ == UNKNOWN {
return
Expand Down

0 comments on commit 7f34012

Please sign in to comment.