Design and approach
Deprecate -loglevel before removing it (src/init/common.cpp:33, head)
This change removes the supported -loglevel option and replaces it with -debug/-trace without a deprecation warning or compatibility period. The developer notes’ startup-option policy calls for warning users when an option is deprecated, and the general removal policy specifies at least one major release of grace. Existing configurations using -loglevel can therefore lose their requested logging behavior without a migration warning at startup. Retain the old option with a deprecation warning during the grace period, then remove it in a later release.
🟡 Minor
Enabling walletdb tracing does not affect open connections (src/rpc/node.cpp:297, head)
If a wallet database is already open when logging is called with trace=["walletdb"], the call changes logger state but does not install SQLite’s statement-tracing callback on that connection. SQLiteDatabase::Open registers the callback only when ShouldTraceLog(WALLETDB) is already true. The RPC therefore reports walletdb tracing as enabled, but statements from the existing connection are not logged. Configure the hook for open connections, or otherwise make runtime enabling take effect for them.
Enabling a category resets its configured log level (src/logging.cpp:131, head)
The documented kernel API usage pattern sets a category’s level with btck_logging_set_level_category and then enables it with btck_logging_enable_category; the existing kernel test uses this order for KERNEL at TRACE. Enabling the category changes its explicitly configured level to Debug, filtering out trace messages. Enabling ALL similarly resets the global level. Enabling a category should preserve any level the caller has already set.
Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review did not complete.