Add slot to proposal error logs (#12071)

* Add slot to proposal error logs

* remove one field
This commit is contained in:
Radosław Kapka 2023-03-02 17:33:39 +01:00 committed by GitHub
parent 25d06d41be
commit 4ca3c5b058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
}