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 bf1e983 commit 67b6a6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/v2/queue/handler/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"net/http"
"strconv"

"github.com/babylonlabs-io/staking-api-service/internal/shared/types"
queueClient "github.com/babylonlabs-io/staking-queue-client/client"
Expand Down Expand Up @@ -31,6 +32,7 @@ func (h *V2QueueHandler) ActiveStakingHandler(ctx context.Context, messageBody s

log.Debug().
Str("staking_tx", activeStakingEvent.StakingTxHashHex).
Str("staking_amount", strconv.FormatUint(activeStakingEvent.StakingAmount, 10)).
Msg("processing active delegation event")

statsErr := h.Services.V2Service.ProcessActiveDelegationStats(
Expand Down Expand Up @@ -59,6 +61,7 @@ func (h *V2QueueHandler) UnbondingStakingHandler(ctx context.Context, messageBod

log.Debug().
Str("staking_tx", unbondingStakingEvent.StakingTxHashHex).
Str("staking_amount", strconv.FormatUint(unbondingStakingEvent.StakingAmount, 10)).
Msg("processing unbonding delegation event")

// Perform the stats calculation
Expand Down

0 comments on commit 67b6a6d

Please sign in to comment.