Disable the useless error log info

This commit is contained in:
GilbertWong 2019-07-18 19:51:06 +08:00 committed by Shawn
parent 953d320667
commit 0c14484b0a
1 changed files with 1 additions and 4 deletions

View File

@ -461,9 +461,6 @@ handle_call({pubrel, PacketId, _ReasonCode}, _From, State = #state{awaiting_rel
handle_call(close, _From, State) ->
{stop, normal, ok, State};
handle_call({close, Reason}, _From, State) ->
{stop, Reason, ok, State};
handle_call(Req, _From, State) ->
?LOG(error, "Unexpected call: ~p", [Req]),
{reply, ignored, State}.
@ -633,7 +630,7 @@ handle_info({'EXIT', ConnPid, Reason}, State = #state{will_msg = WillMsg, expiry
_ ->
send_willmsg(WillMsg)
end,
{stop, Reason, State#state{will_msg = undefined, conn_pid = undefined}};
shutdown(Reason, State#state{will_msg = undefined, conn_pid = undefined});
handle_info({'EXIT', ConnPid, Reason}, State = #state{conn_pid = ConnPid}) ->
State1 = case Reason of