Skip to content

Commit 28a1758

Browse files
jkczyzluke-jr
authored andcommitted
Add VALIDATION to BCLog::LogFlags
This flag is for logging from within CValidationInterface (see bitcoin#12994). A separate flag is desirable as the logging can be noisy and thus may need to be disabled without affecting other logging. Github-Pull: bitcoin#16688 Rebased-From: 428ac70
1 parent 178a834 commit 28a1758

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/logging.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ const CLogCategoryDesc LogCategories[] =
150150
{BCLog::COINDB, "coindb"},
151151
{BCLog::QT, "qt"},
152152
{BCLog::LEVELDB, "leveldb"},
153+
{BCLog::VALIDATION, "validation"},
153154
{BCLog::ALL, "1"},
154155
{BCLog::ALL, "all"},
155156
};

src/logging.h

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ namespace BCLog {
5454
COINDB = (1 << 18),
5555
QT = (1 << 19),
5656
LEVELDB = (1 << 20),
57+
VALIDATION = (1 << 21),
5758
ALL = ~(uint32_t)0,
5859
};
5960

0 commit comments

Comments
 (0)