[#693] node/reputation: Log keys in hex format

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-07-13 12:39:54 +03:00 committed by Alex Vanin
parent e2f7b3f1cc
commit 53391f057e
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
package intermediate
import (
"encoding/hex"
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
@ -24,7 +25,7 @@ type ErrNoData struct {
func (e *ErrNoData) Error() string {
if e.hasDaughter {
return fmt.Sprintf("no data in %d epoch for peer: %s", e.epoch, string(e.daughter.Bytes()))
return fmt.Sprintf("no data in %d epoch for peer: %s", e.epoch, hex.EncodeToString(e.daughter.Bytes()))
}
return fmt.Sprintf("no daughter data in %d epoch", e.epoch)