1
在我gen_server我结束这样的:如何gen_server正常终止,而不崩溃报告
handle_info({'EXIT', _From, _Reason}, State) ->
{stop, partner_fled, State};
但还是记录打印出来作为一个错误
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
的代码如预期运行,但我不希望记录器将其打印出来作为优雅的终止。
顺便说一句,我使用啤酒,但我认为删除它只会改变日志的格式。