logging: treat BCLog::ALL like BCLog::NONE

This commit is contained in:
Anthony Towns
2023-09-12 18:13:25 +10:00
parent 667ce3e329
commit 782bb6a056
2 changed files with 9 additions and 3 deletions

View File

@@ -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 {};