Skip to content

Commit

Permalink
Add tracing for removed item.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed May 6, 2024
1 parent 3dcb000 commit a3ea5fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/node/scheduler/priority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ std::shared_ptr<nano::block> nano::scheduler::priority::activate (secure::transa
{
node.logger.trace (nano::log::type::election_scheduler, nano::log::detail::block_overflow,
nano::log::arg{ "block", block->hash ().to_string () },
nano::log::arg{ "removed", removed->hash ().to_string () },
nano::log::arg{ "time", time_priority.time_since_epoch ().count () });
// Bucket was full and another block was lowest priority
auto inserted = tracking.emplace (block->hash (), &bucket);
Expand All @@ -108,6 +109,7 @@ std::shared_ptr<nano::block> nano::scheduler::priority::activate (secure::transa
{
node.logger.trace (nano::log::type::election_scheduler, nano::log::detail::block_reject,
nano::log::arg{ "block", block->hash ().to_string () },
nano::log::arg{ "removed", removed->hash ().to_string () },
nano::log::arg{ "time", time_priority.time_since_epoch ().count () });
lock.unlock ();
// Bucket was full and block inserted was lowest priority
Expand Down

0 comments on commit a3ea5fa

Please sign in to comment.