Review report

core: PR #34038

Design and approach

Provide a deprecation period for -loglevel (src/init/common.cpp:32, head)

This change replaces the registered -loglevel option with -trace, so users who upgrade with an existing -loglevel argument get an invalid-parameter startup error instead of a migration warning. The Developer Notes specify a one-major-release grace period for feature removal and call for warnings when startup options are deprecated. Retaining a temporary compatibility parser that warns users to migrate to -debug/-trace would follow that process. The option’s debug/test focus limits the affected audience, but does not prevent startup failures for those users.

🟡 Minor

Walletdb tracing does not enable tracing on open wallets (src/rpc/node.cpp:297, head)

If a wallet is already open without walletdb tracing enabled, this RPC changes only the logger’s category level. The SQLite trace callback is installed only during the initial database open, so statements from that wallet remain unlogged until its connection is reopened even though the RPC reports walletdb as traced.

Enabling a category overwrites its configured log level (src/logging.cpp:131, head)

EnableCategory previously changed only the category mask, but now unconditionally sets the category level to Debug. A kernel API caller that sets a category to Trace and then enables it therefore loses the requested level, filtering out trace messages. Enabling ALL also resets the global level and clears per-category overrides. Keep enabling separate from changing levels, or apply the Debug default only when callers specifically request debug logging.

Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete.