diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/logging.cpp | 8 | ||||
-rw-r--r-- | src/logging.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 1e2c1d5a77..3a25e7118d 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -135,7 +135,7 @@ struct CLogCategoryDesc { const CLogCategoryDesc LogCategories[] = { {BCLog::NONE, "0"}, - {BCLog::NONE, "none"}, + {BCLog::NONE, ""}, {BCLog::NET, "net"}, {BCLog::TOR, "tor"}, {BCLog::MEMPOOL, "mempool"}, @@ -187,8 +187,6 @@ bool GetLogCategory(BCLog::LogFlags& flag, const std::string& str) std::string LogLevelToStr(BCLog::Level level) { switch (level) { - case BCLog::Level::None: - return "none"; case BCLog::Level::Debug: return "debug"; case BCLog::Level::Info: @@ -197,6 +195,8 @@ std::string LogLevelToStr(BCLog::Level level) return "warning"; case BCLog::Level::Error: return "error"; + case BCLog::Level::None: + return ""; } assert(false); } @@ -206,7 +206,7 @@ std::string LogCategoryToStr(BCLog::LogFlags category) // Each log category string representation should sync with LogCategories switch (category) { case BCLog::LogFlags::NONE: - return "none"; + return ""; case BCLog::LogFlags::NET: return "net"; case BCLog::LogFlags::TOR: diff --git a/src/logging.h b/src/logging.h index 50869ad89a..f3914958cf 100644 --- a/src/logging.h +++ b/src/logging.h @@ -68,11 +68,11 @@ namespace BCLog { ALL = ~(uint32_t)0, }; enum class Level { - Debug = 0, - None = 1, - Info = 2, - Warning = 3, - Error = 4, + Debug = 0, // High-volume or detailed logging for development/debugging + Info, // Default + Warning, + Error, + None, // Internal use only }; class Logger |