This commit is contained in:
Feng Lee 2015-08-12 00:26:28 +08:00
parent c4a09f97d5
commit e4d45c4105
1 changed files with 1 additions and 0 deletions

View File

@ -308,6 +308,7 @@ shutdown(Error, #proto_state{client_id = undefined}) ->
lager:info("Protocol shutdown ~p", [Error]),
ignore;
%% TODO: ClientId??
shutdown(Error, #proto_state{peername = Peername, client_id = ClientId, will_msg = WillMsg}) ->
lager:info([{client, ClientId}], "Client ~s@~s: shutdown ~p",
[ClientId, emqttd_net:format(Peername), Error]),