Skip to content

Commit 3251769

Browse files
fix logging
1 parent 5942ea2 commit 3251769

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/console/deployer.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule Console.Deployer do
3636
def me(), do: {__MODULE__, node()}
3737

3838
def elect() do
39-
Logger.info "attempting to elect #{me()} as leader"
39+
Logger.info "attempting to elect #{inspect(me())} as leader"
4040
LeaderElection.elect(me(), @leader)
4141
end
4242

@@ -143,8 +143,8 @@ defmodule Console.Deployer do
143143
def terminate(state, reason) do
144144
Logger.info "Terminating with state: #{inspect(state)} reason #{inspect(reason)}"
145145
case LeaderElection.clear(me(), @leader) do
146-
{:ok, _} -> Logger.info "removed #{me()} as cluster leader"
147-
_ -> Logger.info "#{me()} is not leader, moving on"
146+
{:ok, _} -> Logger.info "removed #{inspect(me())} as cluster leader"
147+
_ -> Logger.info "#{inspect(me())} is not leader, moving on"
148148
end
149149
:ok
150150
end

0 commit comments

Comments
 (0)