Skip to content

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

Merged
dimitrovmaksim merged 1 commit intographprotocol:masterfrom
dimitrovmaksim:warn-when-running-in-debug-mode
Apr 9, 2026
Merged

graph, node: Warn when running a debug build#6488
dimitrovmaksim merged 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 out a large volume of logs at startup and the warn! log may go unnoticed.
Screenshot 2026-04-07 at 12 09 17

@dimitrovmaksim dimitrovmaksim self-assigned this Apr 8, 2026
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.
@dimitrovmaksim dimitrovmaksim force-pushed the warn-when-running-in-debug-mode branch from 340b2a1 to 4a00e8c Compare April 9, 2026 04:12
@dimitrovmaksim dimitrovmaksim merged commit 4a00e8c into graphprotocol:master Apr 9, 2026
6 checks passed
@dimitrovmaksim dimitrovmaksim deleted the warn-when-running-in-debug-mode branch April 9, 2026 04:51
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

2 participants