Skip to content

Commit

Permalink
Add extra logs for payments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc committed Dec 20, 2024
1 parent d3674bf commit 7a1ba64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion disperser/apiserver/disperse_blob_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ func (s *DispersalServerV2) DisperseBlob(ctx context.Context, req *pb.DisperseBl
if err != nil {
return nil, api.NewErrorInternal(err.Error())
}
s.logger.Debug("received a new blob dispersal request", "blobSizeBytes", len(data), "quorums", req.GetBlobHeader().GetQuorumNumbers())

s.logger.Debug("received a new blob dispersal request",
"accountId", blobHeader.PaymentMetadata.AccountID,
"blobSizeBytes", len(data),
"quorums", req.GetBlobHeader().GetQuorumNumbers(),
)

blobKey, err := s.StoreBlob(ctx, data, blobHeader, time.Now(), onchainState.TTL)
if err != nil {
Expand Down
8 changes: 8 additions & 0 deletions disperser/cmd/apiserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ func RunDisperserServer(ctx *cli.Context) error {
logger,
// metrics.NewNoopMetrics(),
)

logger.Info("Enabled payment meterer",
"interval", config.UpdateInterval,
"chainReadTimeout", config.ChainReadTimeout,
"reservationsTable", config.ReservationsTableName,
"onDemandTable", config.OnDemandTableName,
"globalRateTable", config.GlobalRateTableName,
)
}

var ratelimiter common.RateLimiter
Expand Down

0 comments on commit 7a1ba64

Please sign in to comment.