Skip to content

Commit 428ac70

Browse files
committed
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.
1 parent bb862d7 commit 428ac70

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
@@ -162,6 +162,7 @@ const CLogCategoryDesc LogCategories[] =
162162
{BCLog::COINDB, "coindb"},
163163
{BCLog::QT, "qt"},
164164
{BCLog::LEVELDB, "leveldb"},
165+
{BCLog::VALIDATION, "validation"},
165166
{BCLog::ALL, "1"},
166167
{BCLog::ALL, "all"},
167168
};

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)