Skip to content

Commit

Permalink
chore: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
limebell committed Dec 9, 2024
1 parent 611edf4 commit 842da15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Libplanet.Net/Consensus/Context.Mutate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ private void ProcessGenericUponRules()
if (Step == ConsensusStep.PreVote)
{
_logger.Debug(
"Entering PreCommit step due to proposal message and have collected " +
"2/3+ PreVote for current round {Round}. (context: {Context})",
"Schedule to enter PreCommit step due to proposal message and have " +
"collected 2/3+ PreVote for current round {Round}. (context: {Context})",
Round,
ToString());
_lockedValue = p3.Block;
Expand Down Expand Up @@ -428,6 +428,10 @@ private void EnterPreCommit(int round, BlockHash hash)
return;
}

_logger.Debug(
"Entering PreCommit step current round {Round}. (context: {Context})",
Round,
ToString());
Step = ConsensusStep.PreCommit;
PublishMessage(
new ConsensusPreCommitMsg(MakeVote(round, hash, VoteFlag.PreCommit)));
Expand Down

0 comments on commit 842da15

Please sign in to comment.