mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
logging: treat BCLog::ALL like BCLog::NONE
This commit is contained in:
@@ -390,7 +390,9 @@ namespace BCLog {
|
||||
|
||||
std::string BCLog::Logger::GetLogPrefix(BCLog::LogFlags category, BCLog::Level level) const
|
||||
{
|
||||
const bool has_category{category != LogFlags::NONE};
|
||||
if (category == LogFlags::NONE) category = LogFlags::ALL;
|
||||
|
||||
const bool has_category{category != LogFlags::ALL};
|
||||
|
||||
// If there is no category, Info is implied
|
||||
if (!has_category && level == Level::Info) return {};
|
||||
|
||||
Reference in New Issue
Block a user