aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2023-09-12 18:13:25 +1000
committerAnthony Towns <aj@erisian.com.au>2023-12-15 11:03:25 +1000
commit782bb6a05663ad7a53908e910d0f42b49b881e09 (patch)
tree3153dffa6dc2b5a5c3ad29155af0352a11982757 /src/logging.cpp
parent667ce3e3297645527b07314e1d5a82275fb25845 (diff)
logging: treat BCLog::ALL like BCLog::NONE
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index f6cd404971..6004abf999 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -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 {};