diff --git a/src/raft_log.rs b/src/raft_log.rs index fcfcf32e..d0fe2b32 100644 --- a/src/raft_log.rs +++ b/src/raft_log.rs @@ -19,6 +19,7 @@ use std::cmp; use slog::warn; use slog::Logger; +use crate::derializer::format_entry; use crate::eraftpb::{Entry, Snapshot}; use crate::errors::{Error, Result, StorageError}; use crate::log_unstable::Unstable; @@ -359,7 +360,7 @@ impl RaftLog { trace!( self.unstable.logger, "Entries being appended to unstable list"; - "ents" => ?ents, + "ents" => ents.iter().map(|e| format_entry(e)).collect::>().join(", "), ); if ents.is_empty() { return self.last_index();