Skip to content

Commit

Permalink
Add slot to proposal error logs (#12071)
Browse files Browse the repository at this point in the history
* Add slot to proposal error logs

* remove one field
  • Loading branch information
rkapka authored Mar 2, 2023
1 parent 25d06d4 commit 4ca3c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/client/propose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 4ca3c5b

Please sign in to comment.