aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2022-09-19 13:07:31 +0300
committerGleb Naumenko <naumenko.gs@gmail.com>2022-10-17 12:00:59 +0300
commit24e36fac0a86aa371046470dc4f8dfed7a868fb2 (patch)
tree94b87c6736e3d53799b786792208b48feb86c525
parentc35b91afdc401696f4b1ee65a876328fd462aec9 (diff)
downloadbitcoin-24e36fac0a86aa371046470dc4f8dfed7a868fb2.tar.xz
log: Add tx reconciliation log category
-rw-r--r--src/logging.cpp3
-rw-r--r--src/logging.h1
2 files changed, 4 insertions, 0 deletions
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 {