From 38a6678c2844117d2a4bd7b4b18938cfb951349b Mon Sep 17 00:00:00 2001 From: Drew Nutter Date: Thu, 27 Feb 2025 17:02:12 -0500 Subject: [PATCH] fix(consensus): use correct logger in fork choice (#584) Fork choice was using `std.log` instead of the logger it already has as a field. This switches to use its contained logger. --- src/consensus/fork_choice.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consensus/fork_choice.zig b/src/consensus/fork_choice.zig index 46e82c44c..c0df465c1 100644 --- a/src/consensus/fork_choice.zig +++ b/src/consensus/fork_choice.zig @@ -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}, );