Browse Source

Merge pull request #21 from superscale/feature/no_shutdown_log

Ignore `shutdown` as process death reason too
Roberto Ostinelli 8 years ago
parent
commit
01d914a32b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/syn_registry.erl

+ 1 - 0
src/syn_registry.erl

@@ -255,6 +255,7 @@ handle_info({'EXIT', Pid, Reason}, #state{
                 %% log
                 %% log
                 case Reason of
                 case Reason of
                     normal -> ok;
                     normal -> ok;
+                    shutdown -> ok;
                     killed -> ok;
                     killed -> ok;
                     _ ->
                     _ ->
                         error_logger:error_msg("Process with key ~p and pid ~p exited with reason: ~p", [Key0, Pid, Reason])
                         error_logger:error_msg("Process with key ~p and pid ~p exited with reason: ~p", [Key0, Pid, Reason])