forked from TrueCloudLab/frostfs-node
[#1487] innerring: Log errors in processors
Log errors for network operations. The only places where we are not interested in errors are `Submit` in pool and unmarshaling. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
79d72a6713
commit
af7d15cc1a
2 changed files with 6 additions and 5 deletions
|
@ -29,7 +29,7 @@ func (ap *Processor) processEmit() {
|
||||||
// there is no signature collecting, so we don't need extra fee
|
// there is no signature collecting, so we don't need extra fee
|
||||||
err := ap.morphClient.Invoke(contract, 0, emitMethod)
|
err := ap.morphClient.Invoke(contract, 0, emitMethod)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ap.log.Warn("can't invoke alphabet emit method")
|
ap.log.Warn("can't invoke alphabet emit method", zap.String("error", err.Error()))
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ func (ap *Processor) processEmit() {
|
||||||
|
|
||||||
key, err := keys.NewPublicKeyFromBytes(keyBytes, elliptic.P256())
|
key, err := keys.NewPublicKeyFromBytes(keyBytes, elliptic.P256())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ap.log.Warn("can't convert node public key to address",
|
ap.log.Warn("can't parse node public key",
|
||||||
zap.String("error", err.Error()))
|
zap.String("error", err.Error()))
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -29,7 +29,8 @@ func (inc *IncomeSettlementContext) Collect() {
|
||||||
cnrEstimations, err := inc.estimations.Estimations(inc.epoch)
|
cnrEstimations, err := inc.estimations.Estimations(inc.epoch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
inc.log.Error("can't fetch container size estimations",
|
inc.log.Error("can't fetch container size estimations",
|
||||||
zap.Uint64("epoch", inc.epoch))
|
zap.Uint64("epoch", inc.epoch),
|
||||||
|
zap.String("error", err.Error()))
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -42,7 +43,7 @@ func (inc *IncomeSettlementContext) Collect() {
|
||||||
inc.log.Warn("can't fetch container info",
|
inc.log.Warn("can't fetch container info",
|
||||||
zap.Uint64("epoch", inc.epoch),
|
zap.Uint64("epoch", inc.epoch),
|
||||||
zap.Stringer("container_id", cnrEstimations[i].ContainerID),
|
zap.Stringer("container_id", cnrEstimations[i].ContainerID),
|
||||||
)
|
zap.String("error", err.Error()))
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -52,7 +53,7 @@ func (inc *IncomeSettlementContext) Collect() {
|
||||||
inc.log.Debug("can't fetch container info",
|
inc.log.Debug("can't fetch container info",
|
||||||
zap.Uint64("epoch", inc.epoch),
|
zap.Uint64("epoch", inc.epoch),
|
||||||
zap.Stringer("container_id", cnrEstimations[i].ContainerID),
|
zap.Stringer("container_id", cnrEstimations[i].ContainerID),
|
||||||
)
|
zap.String("error", err.Error()))
|
||||||
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue