From cfed3c3513e9c5ab472248e02ab1965adef0d9dc Mon Sep 17 00:00:00 2001 From: rkapka Date: Thu, 2 Mar 2023 16:17:57 +0100 Subject: [PATCH 1/2] Add slot to proposal error logs --- validator/client/propose.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validator/client/propose.go b/validator/client/propose.go index 80c48a55d03f..45cd8785078f 100644 --- a/validator/client/propose.go +++ b/validator/client/propose.go @@ -124,7 +124,7 @@ func (v *validator) ProposeBlock(ctx context.Context, slot primitives.Slot, pubK // Propose and broadcast block via beacon node proposal, err := blk.PbGenericBlock() if err != nil { - log.WithError(err).Error("Failed to create proposal request") + log.WithField("blockSlot", slot).WithError(err).Error("Failed to create proposal request") if v.emitAccountMetrics { ValidatorProposeFailVec.WithLabelValues(fmtKey).Inc() } @@ -132,7 +132,7 @@ func (v *validator) ProposeBlock(ctx context.Context, slot primitives.Slot, pubK } blkResp, err := v.validatorClient.ProposeBeaconBlock(ctx, proposal) if err != nil { - log.WithError(err).Error("Failed to propose block") + log.WithField("blockSlot", slot).WithError(err).Error("Failed to propose block") if v.emitAccountMetrics { ValidatorProposeFailVec.WithLabelValues(fmtKey).Inc() } From fe6a7e22013c40be2f63eb3c0bcdcd47f92dd6ee Mon Sep 17 00:00:00 2001 From: rkapka Date: Thu, 2 Mar 2023 16:21:28 +0100 Subject: [PATCH 2/2] remove one field --- validator/client/propose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/client/propose.go b/validator/client/propose.go index 45cd8785078f..c056e37bb644 100644 --- a/validator/client/propose.go +++ b/validator/client/propose.go @@ -124,7 +124,7 @@ func (v *validator) ProposeBlock(ctx context.Context, slot primitives.Slot, pubK // Propose and broadcast block via beacon node proposal, err := blk.PbGenericBlock() if err != nil { - log.WithField("blockSlot", slot).WithError(err).Error("Failed to create proposal request") + log.WithError(err).Error("Failed to create proposal request") if v.emitAccountMetrics { ValidatorProposeFailVec.WithLabelValues(fmtKey).Inc() }