aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/setup_common.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/test/util/setup_common.cpp
parent98a1f9c68744074f29fa5fa67514218b5ee9edc4 (diff)
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/test/util/setup_common.cpp')
-rw-r--r--src/test/util/setup_common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp
index 30d26ecf79..872310f1ca 100644
--- a/src/test/util/setup_common.cpp
+++ b/src/test/util/setup_common.cpp
@@ -108,6 +108,7 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName, const std::ve
"-logsourcelocations",
"-logtimemicros",
"-logthreadnames",
+ "-loglevel=debug",
"-debug",
"-debugexclude=libevent",
"-debugexclude=leveldb",