Skip to content

graph, node: Warn when running a debug build#6488

Open
dimitrovmaksim wants to merge 1 commit intographprotocol:masterfrom
dimitrovmaksim:warn-when-running-in-debug-mode
Open

graph, node: Warn when running a debug build#6488
dimitrovmaksim wants to merge 1 commit intographprotocol:masterfrom
dimitrovmaksim:warn-when-running-in-debug-mode

Conversation

@dimitrovmaksim
Copy link
Copy Markdown
Member

@dimitrovmaksim dimitrovmaksim commented Apr 7, 2026

Resolves #6206

Reasoning:

Users building from source may accidentally build graph-node without --release flag and get a severely degraded performance

Solution:

  • A warn! is emitted on startup (right after the version line) with an explicit message pointing to cargo build --release.
  • Every log line is prefixed with [DEBUG-BUILD] — graph-node spits a large volume of logs at startup and the warn! log may go unnoticed.
Screenshot 2026-04-07 at 12 09 17

Prefix every log line with [DEBUG-BUILD] and emit a startup warning
when graph-node is compiled without --release, so operators are not
silently running a degraded build in production.
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.

Warn to operators when running in debug mode

1 participant