In my gen_server I am terminating it like this:
handle_info({'EXIT', _From, _Reason}, State) ->
{stop, partner_fled, State};
But still logger prints it out as an error
14:56:43.349 [error] gen_server <0.3290.0> terminated with reason: partner_fled
14:56:43.349 [error] CRASH REPORT Process <0.3290.0> with 0 neighbours exited with reason: partner_fled in gen_server:terminate/7 line 812
The code is working as intended, but I don't want the logger to print it out as its a graceful termination.
By the way I am using lager, but I think removing it will only change the format of logging.