From f21838c8cb4ac66b35c21171de2796a42f421968 Mon Sep 17 00:00:00 2001 From: Artem Date: Thu, 13 Jun 2024 00:08:00 +0200 Subject: [PATCH] Receiver log --- pkg/indexer/receiver/receiver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/indexer/receiver/receiver.go b/pkg/indexer/receiver/receiver.go index 030d89e..e67f31d 100644 --- a/pkg/indexer/receiver/receiver.go +++ b/pkg/indexer/receiver/receiver.go @@ -114,7 +114,7 @@ func (r *Receiver) worker(ctx context.Context, height uint64) { if errors.Is(err, context.Canceled) { return } - r.log.Err(err).Msg("get block request") + r.log.Err(err).Uint64("height", height).Msg("get block request") time.Sleep(time.Second) continue } @@ -143,7 +143,7 @@ func (r *Receiver) worker(ctx context.Context, height uint64) { if errors.Is(err, context.Canceled) { return } - r.log.Err(err).Msg("get block traces request") + r.log.Err(err).Uint64("height", height).Msg("get block traces request") time.Sleep(time.Second) continue } @@ -173,7 +173,7 @@ func (r *Receiver) worker(ctx context.Context, height uint64) { if errors.Is(err, context.Canceled) { return } - r.log.Err(err).Msg("state update request") + r.log.Err(err).Uint64("height", height).Msg("state update request") time.Sleep(time.Second) continue }