Skip to content

Commit

Permalink
Fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaidashenko committed Feb 6, 2025
1 parent 0aedb57 commit 2e217cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/solana/logpoller/log_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"
"iter"
"math"
"slices"
"time"

"github.com/gagliardetto/solana-go/rpc"
Expand Down Expand Up @@ -68,6 +67,10 @@ type Service struct {
}

func New(lggr logger.SugaredLogger, orm ORM, cl RPCClient) *Service {
return newService(lggr, orm, cl)
}

func newService(lggr logger.SugaredLogger, orm ORM, cl RPCClient) *Service {
lggr = logger.Sugared(logger.Named(lggr, "LogPoller"))
lp := &Service{
orm: orm,
Expand Down Expand Up @@ -249,7 +252,7 @@ func (lp *Service) backfillFilters(ctx context.Context, filters []Filter, to int
return err
}

lp.lggr.Infow("Done backfilling filters", "filters", slices.All(filters))
lp.lggr.Infow("Done backfilling filters", "filters", len(filters), "from", minSlot, "to", to)
for _, filter := range filters {
filterErr := lp.filters.MarkFilterBackfilled(ctx, filter.ID)
if filterErr != nil {
Expand Down

0 comments on commit 2e217cd

Please sign in to comment.