Skip to content

Commit

Permalink
WIP: debugging logs for test case lazy_pruning_missing_block
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiganos committed Apr 17, 2024
1 parent 8601543 commit c611190
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nano/core_test/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <nano/test_common/network.hpp>
#include <nano/test_common/system.hpp>
#include <nano/test_common/testutil.hpp>
#include <nano/lib/logging.hpp>

#include <gtest/gtest.h>

Expand Down Expand Up @@ -1301,6 +1302,9 @@ TEST (bootstrap_processor, lazy_destinations)

TEST (bootstrap_processor, lazy_pruning_missing_block)
{
nano::logger::global_config.levels[{nano::log::type::bulk_pull_client, nano::log::detail::all}] = nano::log::level::trace;
nano::logger::global_config.levels[{nano::log::type::channel_sent, nano::log::detail::all}] = nano::log::level::trace;

nano::test::system system;
nano::node_config config = system.default_config ();
config.frontiers_confirmation = nano::frontiers_confirmation_mode::disabled;
Expand Down
2 changes: 1 addition & 1 deletion nano/lib/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ class logger final
static void initialize_for_tests (nano::log_config fallback);
static void flush ();

static nano::log_config global_config;
private:
static bool global_initialized;
static nano::log_config global_config;
static std::vector<spdlog::sink_ptr> global_sinks;
static std::function<std::string (nano::log::logger_id, std::string identifier)> global_name_formatter;
static nano::object_stream_config global_tracing_config;
Expand Down

0 comments on commit c611190

Please sign in to comment.