From d71ea47e3f1893a37be8330074f0d5a8ded090e2 Mon Sep 17 00:00:00 2001 From: Artem Date: Sat, 4 May 2024 20:50:25 +0200 Subject: [PATCH] Log --- internal/storage/postgres/event.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/storage/postgres/event.go b/internal/storage/postgres/event.go index 146c3ad..8e49069 100644 --- a/internal/storage/postgres/event.go +++ b/internal/storage/postgres/event.go @@ -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" ) @@ -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 }