Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Dec 22, 2024
1 parent a679ec2 commit 3348d0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/v2/queue/handler/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 3348d0e

Please sign in to comment.