From 20e49824e0270f61fa3b40d83efa5cc4cf3d7bcc Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Sat, 11 May 2019 09:30:11 -0500 Subject: [PATCH] Use debug level logging when --verbose output requested --- unittests/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unittests/main.cpp b/unittests/main.cpp index 00fe71891a1..cb26aeb625b 100644 --- a/unittests/main.cpp +++ b/unittests/main.cpp @@ -30,7 +30,11 @@ boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) { break; } } - if(!is_verbose) fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::off); + if(is_verbose) { + fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::debug); + } else { + fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::off); + } // Register fc::exception translator boost::unit_test::unit_test_monitor.register_exception_translator(&translate_fc_exception);