[#1765] Use hex format to print storage node ID

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2022-10-11 15:49:34 +03:00 committed by fyrchik
parent 5a2daadd37
commit 8714fc42b5
13 changed files with 23 additions and 29 deletions

View file

@ -3,7 +3,6 @@ package innerring
import (
"crypto/ecdsa"
"crypto/elliptic"
"encoding/hex"
"errors"
"fmt"
@ -309,7 +308,7 @@ func (s *Server) handleSubnetRemoval(e event.Event) {
func (s *Server) processCandidate(txHash neogoutil.Uint256, removedID subnetid.ID, c netmap.NodeInfo) {
removeSubnet := false
log := s.log.With(
zap.String("public_key", hex.EncodeToString(c.PublicKey())),
zap.String("public_key", netmap.StringifyPublicKey(c)),
zap.String("removed_subnet", removedID.String()),
)