HomePhabricator

logging: Log Info messages unconditionally

Description

logging: Log Info messages unconditionally

Summary:
Previously Info-level logging when a category was specified (via
LogPrintLevel) would only print the corresponding log message if
-debug=category were specified, while Info-level logging without a
category would always be printed. Make this more consistent by having
Info messages always be logged, whether they include a category or not.

This is a partial backport of core#28318 and core#29230
https://github.com/bitcoin/bitcoin/pull/28318/commits/ab34dc6012351e7b8aab871dd9d2b38ade1cd9bc
Depends on D18270

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18271

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Aug 23 2023, 00:02
PiRKCommitted on Jun 20 2025, 08:41
PiRKPushed on Jun 20 2025, 08:41
Reviewer
Restricted Project
Differential Revision
D18271: logging: Log Info messages unconditionally
Parents
rABC2f0e990a9d70: logging: make [cat:debug] and [info] implicit
Branches
Unknown
Tags
Unknown