Skip to content

cmd/downloader: log under [Downloader] in the standalone binary too - #22852

Merged
awskii merged 1 commit into
mainfrom
awskii/log-downloader-prefix
Jul 30, 2026
Merged

cmd/downloader: log under [Downloader] in the standalone binary too#22852
awskii merged 1 commit into
mainfrom
awskii/log-downloader-prefix

Conversation

@awskii

@awskii awskii commented Jul 29, 2026

Copy link
Copy Markdown
Member

downloadercfg sets LogPrefix to "[Downloader] ", and Downloader.log prepends it to all 29 call sites in db/downloader. The standalone binary overwrites it with "[snapshots] " at cmd/downloader/main.go:316, so the same code logs under a different component name depending on which binary is running — a grep for either prefix silently misses half the fleet.

[snapshots] is also already taken: 74 call sites use it for unrelated subsystems (aggregator file building, block retirement, the merger), so the override folds two different components under one name.

Changes

  • Drops the LogPrefix override so both binaries emit [Downloader].
  • The standalone binary's own two startup lines move to [Downloader] as well.

downloadercfg sets LogPrefix to "[Downloader] ", and Downloader.log
prepends it to all 29 call sites in db/downloader. The standalone binary
overwrites it with "[snapshots] ", so the same code logs under a different
component name depending on which binary is running - a grep for either
prefix silently misses half the fleet.

"[snapshots]" is also already taken: 74 call sites use it for unrelated
subsystems (aggregator file building, block retirement, the merger), so the
override folds two different components under one name.

## Changes

- Drops the LogPrefix override so both binaries emit [Downloader].
- The standalone binary's own two startup lines move to [Downloader] as well.
@awskii
awskii enabled auto-merge July 29, 2026 08:25
@awskii
awskii added this pull request to the merge queue Jul 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 29, 2026
@awskii
awskii added this pull request to the merge queue Jul 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 29, 2026
@awskii
awskii added this pull request to the merge queue Jul 30, 2026
Merged via the queue into main with commit cccf604 Jul 30, 2026
107 checks passed
@awskii
awskii deleted the awskii/log-downloader-prefix branch July 30, 2026 03:24
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.

2 participants