Skip to content

Commit

Permalink
fix: snmp walk error unwrap (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 committed May 21, 2024
1 parent e3a9135 commit 627a7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inputs/snmp/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func (t Table) Build(gs snmpConnection, walk bool, tr Translator) (*RTable, erro
log.Printf("E! snmp walk error:%s, oid:%s ", err, oid)
return nil, fmt.Errorf("performing bulk walk for field %s(%s): %w", f.Name, oid, err)
} else {
log.Printf("W! snmp walk error:%s(%s), oid:%s", err, walkErr.Unwrap, oid)
log.Printf("W! snmp walk error:%s(%s), oid:%s", err, walkErr.Unwrap(), oid)
}
}
}
Expand Down

0 comments on commit 627a7cc

Please sign in to comment.