Skip to content

feat: change the DefraDB log level at runtime - #361

Draft
mennatnaga wants to merge 1 commit into
menna/debug-listenerfrom
menna/runtime-log-level
Draft

feat: change the DefraDB log level at runtime#361
mennatnaga wants to merge 1 commit into
menna/debug-listenerfrom
menna/runtime-log-level

Conversation

@mennatnaga

@mennatnaga mennatnaga commented Aug 11, 2026

Copy link
Copy Markdown
Member

Stacked on #358.

Adds a handler on the debug listener that reports DefraDB's log level on GET and changes it on POST or PUT, so a node can be turned up to debug and back without a restart.

The handler has no authentication, so anyone who can reach PPROF_ADDR can change the running node's log level rather than only read from it.

@mennatnaga
mennatnaga force-pushed the menna/runtime-log-level branch from 80c35c0 to 7b681d7 Compare August 12, 2026 14:14
@mennatnaga
mennatnaga force-pushed the menna/runtime-log-level branch from 7b681d7 to 450fd96 Compare August 13, 2026 14:04
@mennatnaga
mennatnaga force-pushed the menna/runtime-log-level branch from 450fd96 to 194907b Compare August 14, 2026 23:20
@tzdybal
tzdybal force-pushed the menna/runtime-log-level branch from 194907b to 6986cf3 Compare September 1, 2026 10:03
@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mennatnaga
mennatnaga force-pushed the menna/runtime-log-level branch from 6986cf3 to eb7b95b Compare September 1, 2026 11:11
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.

1 participant