Add VALIDATION to BCLog::LogFlags

This flag is for logging from within CValidationInterface (see #12994).
A separate flag is desirable as the logging can be noisy and thus may
need to be disabled without affecting other logging.
This commit is contained in:
Jeffrey Czyz 2019-08-21 16:19:51 -07:00
parent bb862d7864
commit 428ac70095
2 changed files with 2 additions and 0 deletions

View file

@ -162,6 +162,7 @@ const CLogCategoryDesc LogCategories[] =
{BCLog::COINDB, "coindb"},
{BCLog::QT, "qt"},
{BCLog::LEVELDB, "leveldb"},
{BCLog::VALIDATION, "validation"},
{BCLog::ALL, "1"},
{BCLog::ALL, "all"},
};

View file

@ -54,6 +54,7 @@ namespace BCLog {
COINDB = (1 << 18),
QT = (1 << 19),
LEVELDB = (1 << 20),
VALIDATION = (1 << 21),
ALL = ~(uint32_t)0,
};