From eede626cefcb3a703dfc93f9917a646358f2f405 Mon Sep 17 00:00:00 2001 From: Charles Billette Date: Thu, 15 Aug 2024 11:01:59 -0400 Subject: [PATCH] Remove redundant tracer check for data logging The debug log for received data messages now executes unconditionally, ensuring consistent logging behavior. This change simplifies the code and enhances traceability by always logging the received data. --- cmd/substreams-sink-noop/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/substreams-sink-noop/main.go b/cmd/substreams-sink-noop/main.go index be954b1..475b9fc 100644 --- a/cmd/substreams-sink-noop/main.go +++ b/cmd/substreams-sink-noop/main.go @@ -222,9 +222,7 @@ func (s *Sinker) Run(ctx context.Context) { } func (s *Sinker) HandleBlockScopedData(ctx context.Context, data *pbsubstreamsrpc.BlockScopedData, isLive *bool, cursor *sink.Cursor) error { - if tracer.Enabled() { - zlog.Debug("data message received", zap.Reflect("data", data)) - } + zlog.Debug("data message received", zap.Reflect("data", data)) block := bstream.NewBlockRef(data.Clock.Id, data.Clock.Number) ProcessedBlockCount.Inc()