From e5f4019aa2df6f7eb6e58209b2654dde781c8368 Mon Sep 17 00:00:00 2001 From: olegshmuelov <45327364+olegshmuelov@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:57:38 +0200 Subject: [PATCH] add logs --- protocol/v2/ssv/runner/committee.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocol/v2/ssv/runner/committee.go b/protocol/v2/ssv/runner/committee.go index ef44be95c2..ee3a261daf 100644 --- a/protocol/v2/ssv/runner/committee.go +++ b/protocol/v2/ssv/runner/committee.go @@ -17,6 +17,7 @@ import ( specqbft "github.com/ssvlabs/ssv-spec/qbft" spectypes "github.com/ssvlabs/ssv-spec/types" + "github.com/ssvlabs/ssv/logging/fields" "github.com/ssvlabs/ssv/networkconfig" "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon" @@ -672,6 +673,7 @@ func (cr *CommitteeRunner) executeDuty(ctx context.Context, logger *zap.Logger, slot := duty.DutySlot() // We set committeeIndex to 0 for simplicity, there is no need to specify it exactly because // all 64 Ethereum committees assigned to this slot will get the same data to attest for. + logger.Debug("BEFORE: getting attestation data", fields.Slot(slot)) attData, _, err := cr.GetBeaconNode().GetAttestationData(slot, 0) if err != nil { return errors.Wrap(err, "failed to get attestation data") @@ -680,6 +682,7 @@ func (cr *CommitteeRunner) executeDuty(ctx context.Context, logger *zap.Logger, zap.Duration("attestation_data_time", time.Since(start)), fields.Slot(slot), ) + logger.Debug("AFTER: got attestation data", zap.Any("attestation_data", attData)) cr.started = time.Now() cr.metrics.StartConsensus()