aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorklementtan <klementtan@gmail.com>2022-06-07 00:18:58 +0800
committerJon Atack <jon@atack.com>2022-08-20 11:53:37 +0200
commiteb7bee5f84d41e35cb4296e01bea2aa5ac80a856 (patch)
tree7eb731d9b2689dc82de2cd8f8c17291defea30cd /src/init.cpp
parent98a1f9c68744074f29fa5fa67514218b5ee9edc4 (diff)
downloadbitcoin-eb7bee5f84d41e35cb4296e01bea2aa5ac80a856.tar.xz
Create -loglevel configuration option
- add a -loglevel=<level>|<category:level> config option to allow users to set a global -loglevel and category-specific log levels. LogPrintLevel messages with a higher severity level than -loglevel will not be printed in the debug log. - for now, this config option is debug-only during the migration to severity-based logging - update unit and functional tests Co-authored-by: "Jon Atack <jon@atack.com>"
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4606b77e9f..2b40e882a4 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -915,6 +915,7 @@ bool AppInitParameterInteraction(const ArgsManager& args, bool use_syscall_sandb
// ********************************************************* Step 3: parameter-to-internal-flags
init::SetLoggingCategories(args);
+ init::SetLoggingLevel(args);
fCheckBlockIndex = args.GetBoolArg("-checkblockindex", chainparams.DefaultConsistencyChecks());
fCheckpointsEnabled = args.GetBoolArg("-checkpoints", DEFAULT_CHECKPOINTS_ENABLED);