From 428ac70095253225f64462ee15c595644747f376 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 21 Aug 2019 16:19:51 -0700 Subject: 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. --- src/logging.cpp | 1 + src/logging.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/logging.cpp b/src/logging.cpp index 9f6b5ede12..e7cadead81 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -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"}, }; diff --git a/src/logging.h b/src/logging.h index a2caef51a8..9004093e4e 100644 --- a/src/logging.h +++ b/src/logging.h @@ -54,6 +54,7 @@ namespace BCLog { COINDB = (1 << 18), QT = (1 << 19), LEVELDB = (1 << 20), + VALIDATION = (1 << 21), ALL = ~(uint32_t)0, }; -- cgit v1.2.3