forked from TrueCloudLab/frostfs-node
[#693] node/reputation: Log keys in hex format
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>support/v0.27
parent
e2f7b3f1cc
commit
53391f057e
|
@ -14,6 +14,7 @@ Changelog for NeoFS Node
|
||||||
- Do not require MainNet attributes in "Without MainNet" mode ([#663](https://github.com/nspcc-dev/neofs-node/issues/663)).
|
- Do not require MainNet attributes in "Without MainNet" mode ([#663](https://github.com/nspcc-dev/neofs-node/issues/663)).
|
||||||
- Stable alphabet list merge in Inner Ring governance ([#670](https://github.com/nspcc-dev/neofs-node/issues/670)).
|
- Stable alphabet list merge in Inner Ring governance ([#670](https://github.com/nspcc-dev/neofs-node/issues/670)).
|
||||||
- User can specify only wallet section without node key ([#690](https://github.com/nspcc-dev/neofs-node/pull/690)).
|
- User can specify only wallet section without node key ([#690](https://github.com/nspcc-dev/neofs-node/pull/690)).
|
||||||
|
- Log keys in hex format in reputation errors ([#693](https://github.com/nspcc-dev/neofs-node/pull/693)).
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Debug output of public key in Inner Ring log ([#689](https://github.com/nspcc-dev/neofs-node/pull/689)).
|
- Debug output of public key in Inner Ring log ([#689](https://github.com/nspcc-dev/neofs-node/pull/689)).
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package intermediate
|
package intermediate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
|
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
|
||||||
|
@ -24,7 +25,7 @@ type ErrNoData struct {
|
||||||
|
|
||||||
func (e *ErrNoData) Error() string {
|
func (e *ErrNoData) Error() string {
|
||||||
if e.hasDaughter {
|
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)
|
return fmt.Sprintf("no daughter data in %d epoch", e.epoch)
|
||||||
|
|
Loading…
Reference in New Issue