diff --git a/src/raft.rs b/src/raft.rs index 361c6dbd..78a1d786 100644 --- a/src/raft.rs +++ b/src/raft.rs @@ -18,7 +18,7 @@ use std::cmp; use std::convert::TryFrom; use std::ops::{Deref, DerefMut}; -use crate::derializer::format_message; +use crate::derializer::{format_message, format_confchangev2}; use crate::eraftpb::{ ConfChange, ConfChangeV2, ConfState, Entry, EntryType, HardState, Message, MessageType, Snapshot, @@ -2075,7 +2075,7 @@ impl Raft { info!( self.logger, "ignoring conf change"; - "conf change" => ?cc, + "conf change" => format_confchangev2(&cc), "reason" => reason, "config" => ?self.prs.conf(), "index" => self.pending_conf_index,