Skip to content

Commit

Permalink
ir: Add public key hex to the logs if deny network candidate
Browse files Browse the repository at this point in the history
Improves debug process.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Sep 7, 2023
1 parent 1877325 commit de58dd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/innerring/processors/netmap/process_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (np *Processor) processAddPeer(ev netmapEvent.AddPeer) {
err = np.nodeValidator.VerifyAndUpdate(&nodeInfo)
if err != nil {
np.log.Warn("could not verify and update information about network map candidate",
zap.String("public_key", hex.EncodeToString(nodeInfo.PublicKey())),
zap.String("error", err.Error()),
)

Expand Down

0 comments on commit de58dd3

Please sign in to comment.