Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0.2] Enable debug logging of the vote logger for unittest --verbose #772

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions unittests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <iostream>

#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/finality/vote_message.hpp>

#include <fc/log/logger.hpp>

Expand All @@ -19,6 +20,8 @@ static bool is_verbose = false;
void setup_test_logging() {
if(is_verbose) {
fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::debug);
eosio::chain::vote_logger.set_log_level(fc::log_level::debug);
fc::logger::update(eosio::chain::vote_logger.get_name(), eosio::chain::vote_logger);
} else {
fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::off);
}
Expand Down