diff --git a/lib/raft/server.ex b/lib/raft/server.ex index ab59af2..6fd920a 100644 --- a/lib/raft/server.ex +++ b/lib/raft/server.ex @@ -281,7 +281,7 @@ defmodule Raft.Server do count = Enum.count(req.entries) me = state.me indexes = Enum.map(req.entries, & &1.index) - "#{me}: Log is consistent. Appending #{count} new entries at indexes: #{inspect indexes}" + "#{name(state)}: Log is consistent. Appending #{count} new entries at indexes: #{inspect indexes}" end) {:ok, index} = Log.append(state.me, req.entries)