Skip to content

Commit

Permalink
gossiper: start_gossiping: log local state
Browse files Browse the repository at this point in the history
The trace level message hides important information
about the initial node state in gossip.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
  • Loading branch information
bhalevy committed Feb 18, 2024
1 parent e132ffd commit 9426a4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gms/gossiper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2026,11 +2026,9 @@ future<> gossiper::start_gossiping(gms::generation_type generation_nbr, applicat
local_state.add_application_state(entry.first, entry.second);
}

auto generation = local_state.get_heart_beat_state().get_generation();
co_await replicate(get_broadcast_address(), local_state, permit.id());

co_await replicate(get_broadcast_address(), std::move(local_state), permit.id());

logger.trace("gossip started with generation {}", generation);
logger.info("Gossip started with local state: {}", local_state);
_enabled = true;
_nr_run = 0;
_scheduled_gossip_task.arm(INTERVAL);
Expand Down

0 comments on commit 9426a4e

Please sign in to comment.