Skip to content

Commit

Permalink
don't log normal EXITs as error, use debug instead
Browse files Browse the repository at this point in the history
  • Loading branch information
RoadRunnr committed Jan 24, 2023
1 parent df1a9f3 commit 9c38415
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ergw_aaa_session.erl
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ handle_event({call, From}, {set, Values}, _State, Data) ->
handle_event({call, From}, {unset, Options}, _State, Data = #data{session = Session}) ->
{keep_state, Data#data{session = maps:without(Options, Session)}, [{reply, From, ok}]};

handle_event(info, {'EXIT', Owner, normal = Reason},
_State, #data{owner = Owner} = Data) ->
?LOG(debug, "Received EXIT signal for ~p with reason ~p", [Owner, Reason]),
terminate_action(Data),
{stop, normal};
handle_event(info, {'EXIT', Owner, Reason},
_State, #data{owner = Owner} = Data) ->
?LOG(error, "Received EXIT signal for ~p with reason ~p", [Owner, Reason]),
Expand Down

0 comments on commit 9c38415

Please sign in to comment.