Skip to content

fix(hub): log processing block at debug instead of info - #66

Merged
maoueh merged 2 commits into
developfrom
fix/hub-processing-block-debug
Sep 15, 2026
Merged

maoueh merged 2 commits into
developfrom
fix/hub-processing-block-debug

Conversation

@GabrielCartier

Copy link
Copy Markdown
Contributor

This one log line accounted for roughly 27 GB/day, about 40% of the dfuseio-global project's log ingestion. hub.ForkableHub.ProcessBlock logs it once per block, including partial blocks, so on a flash-block chain a relayer emitted around 80 of these lines per block. The DLOG='.*=info,bstream=warn' spec used in deployments no longer mutes it since firehose-core passes the relayer/firehose logger through hub.WithLogger, so the line stopped matching the bstream=warn filter. Dropping it to Debug fixes the ingestion cost without deploy changes.

Note: TestFileSource_Run is flaky (unsynchronized preProcessCount read in filesource_test.go), unrelated to this change.

Comment thread hub/hub.go Outdated
Fires per block and per partial. Under WithLogger it escapes
bstream=warn log specs and made ~40% of prod log bytes.
Per-block debug hides that the hub is advancing at all; one Info line
per 10s restores that without the per-block volume.
@GabrielCartier
GabrielCartier force-pushed the fix/hub-processing-block-debug branch from 51e4664 to 89a0546 Compare September 11, 2026 10:02
@maoueh
maoueh merged commit 062b3f2 into develop Sep 15, 2026
3 checks passed
@maoueh
maoueh deleted the fix/hub-processing-block-debug branch September 15, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants