Skip to content

Commit

Permalink
bug 701, better log msgs for global singleton supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyen committed Mar 8, 2010
1 parent 4fb7038 commit ae62b4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/global_singleton_supervisor.erl
Expand Up @@ -25,11 +25,12 @@ start_link() ->
watch(Pid) ->
process_flag(trap_exit, true),
erlang:monitor(process, Pid),
error_logger:info_msg("Monitoring global singleton at ~p~n", [Pid]),
error_logger:info_msg("Monitoring global singleton at ~p (at node: ~p) from node ~p~n",
[Pid, node(Pid), node()]),
receive
LikelyExit ->
error_logger:info_msg("Global singleton supervisor at ~p exited for reason ~p. Restarting.~n",
[Pid, LikelyExit])
error_logger:info_msg("Global singleton supervisor at ~p (at node: ~p) exited for reason ~p, seen from node ~p. Restarting.~n",
[Pid, node(Pid), LikelyExit, node()])
end.


Expand Down

0 comments on commit ae62b4e

Please sign in to comment.