From 24e36fac0a86aa371046470dc4f8dfed7a868fb2 Mon Sep 17 00:00:00 2001 From: Gleb Naumenko Date: Mon, 19 Sep 2022 13:07:31 +0300 Subject: log: Add tx reconciliation log category --- src/logging.cpp | 3 +++ src/logging.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/logging.cpp b/src/logging.cpp index a3f1d39be5..c95c0b7e37 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -180,6 +180,7 @@ const CLogCategoryDesc LogCategories[] = #endif {BCLog::UTIL, "util"}, {BCLog::BLOCKSTORE, "blockstorage"}, + {BCLog::TXRECONCILIATION, "txreconciliation"}, {BCLog::ALL, "1"}, {BCLog::ALL, "all"}, }; @@ -280,6 +281,8 @@ std::string LogCategoryToStr(BCLog::LogFlags category) return "util"; case BCLog::LogFlags::BLOCKSTORE: return "blockstorage"; + case BCLog::LogFlags::TXRECONCILIATION: + return "txreconciliation"; case BCLog::LogFlags::ALL: return "all"; } diff --git a/src/logging.h b/src/logging.h index fe91ee43a5..5ee6665c76 100644 --- a/src/logging.h +++ b/src/logging.h @@ -66,6 +66,7 @@ namespace BCLog { #endif UTIL = (1 << 25), BLOCKSTORE = (1 << 26), + TXRECONCILIATION = (1 << 27), ALL = ~(uint32_t)0, }; enum class Level { -- cgit v1.2.3