Permalink
Browse files

Ignore unknown child exits in logplex_shard.

  • Loading branch information...
archaelus committed May 1, 2012
1 parent e0d1d78 commit d1fadb54c83e8779565908d04b9369abe9576d21
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/logplex_shard.erl
View
@@ -227,7 +227,9 @@ handle_child_death(Pid) ->
NewMap = dict:store(Shard, {Url, NewPid}, Map),
logplex_shard_info:save(logplex_redis_buffer_map, NewMap, V),
?INFO("at=write_pool_restart oldpid=~p newpid=~p",
- [Pid, NewPid])
+ [Pid, NewPid]);
+ undefined ->
+ ?WARN("at=trap_exit err=unknown_pid pid=~p", [Pid])
end,
ok.

0 comments on commit d1fadb5

Please sign in to comment.