Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7333 from EOSIO/verbose-unittest-1.7.x
Browse files Browse the repository at this point in the history
Use debug level logging for --verbose - 1.7.x
  • Loading branch information
heifner authored May 11, 2019
2 parents abc2fb8 + 20e4982 commit 619163b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unittests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<fc::exception>(&translate_fc_exception);
Expand Down

0 comments on commit 619163b

Please sign in to comment.