diff --git a/internal/v2/queue/handler/stats.go b/internal/v2/queue/handler/stats.go index 4a297054..4738a80f 100644 --- a/internal/v2/queue/handler/stats.go +++ b/internal/v2/queue/handler/stats.go @@ -29,6 +29,10 @@ func (h *V2QueueHandler) ActiveStakingHandler(ctx context.Context, messageBody s // TODO: Perform the address lookup conversion // https://github.com/babylonlabs-io/staking-api-service/issues/162 + log.Debug(). + Str("staking_tx", activeStakingEvent.StakingTxHashHex). + Msg("processing active delegation event") + statsErr := h.Services.V2Service.ProcessActiveDelegationStats( ctx, activeStakingEvent.StakingTxHashHex, @@ -53,6 +57,10 @@ func (h *V2QueueHandler) UnbondingStakingHandler(ctx context.Context, messageBod return types.NewError(http.StatusBadRequest, types.BadRequest, err) } + log.Debug(). + Str("staking_tx", unbondingStakingEvent.StakingTxHashHex). + Msg("processing unbonding delegation event") + // Perform the stats calculation statsErr := h.Services.V2Service.ProcessUnbondingDelegationStats( ctx,