Skip to content

Commit ec8cb9f

Browse files
committed
logging tweaks
1 parent 28454a0 commit ec8cb9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/osiris_replica.erl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,12 @@ handle_info({'EXIT', RRPid, Info},
531531
replica_reader_pid = RRPid}} = State) ->
532532
%% any replica reader exit is troublesome and requires the replica to also
533533
%% terminate
534-
?ERROR_(Name, "replica reader ~w exited with ~w", [RRPid, Info]),
534+
case lists:member(Info, [normal, shutdown]) of
535+
true ->
536+
?DEBUG_(Name, "replica reader ~w exited with ~w", [RRPid, Info]);
537+
false ->
538+
?ERROR_(Name, "replica reader ~w exited with ~w", [RRPid, Info])
539+
end,
535540
{stop, {shutdown, Info}, State};
536541
handle_info({'EXIT', Ref, normal},
537542
#?MODULE{cfg = #cfg{name = Name}} = State) ->

0 commit comments

Comments
 (0)