Skip to content

Commit

Permalink
fix(consensus): use correct logger in fork choice (#584)
Browse files Browse the repository at this point in the history
Fork choice was using `std.log` instead of the logger it already has as
a field. This switches to use its contained logger.
  • Loading branch information
dnut authored Feb 27, 2025
1 parent 1048b6a commit 38a6678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consensus/fork_choice.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ pub const ForkChoice = struct {
// Update the fork info with the aggregated values
const fork_info = self.fork_infos.getPtr(slot_hash_key).?;
if (is_duplicate_confirmed and !fork_info.is_duplicate_confirmed) {
std.log.info(
self.logger.info().logf(
"Fork choice setting {} to duplicate confirmed",
.{slot_hash_key},
);
Expand Down

0 comments on commit 38a6678

Please sign in to comment.