Skip to content

Commit

Permalink
Log
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed May 4, 2024
1 parent 29ba95d commit d71ea47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/storage/postgres/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/dipdup-io/starknet-indexer/internal/storage"
"github.com/dipdup-net/go-lib/database"
"github.com/dipdup-net/indexer-sdk/pkg/storage/postgres"
"github.com/rs/zerolog/log"
"github.com/uptrace/bun"
)

Expand Down Expand Up @@ -55,6 +56,8 @@ func (event *Event) Filter(ctx context.Context, fltr []storage.EventFilter, opts
Join("left join address as contract on contract.id = event.contract_id").
Join("left join address as from_addr on from_addr.id = event.from_id")
q = addSort(q, opt.SortField, opt.SortOrder)

log.Info().Msg(q.String())
err = q.Scan(ctx, &result)
return
}

0 comments on commit d71ea47

Please sign in to comment.