log error -> warning

This commit is contained in:
feng 2015-03-19 23:00:31 +08:00
parent 32a3e3450d
commit 9c2640c8e4
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ process_received_bytes(Bytes, State = #state{packet_opts = PacketOpts,
%%----------------------------------------------------------------------------
network_error(Reason, State = #state{peer_name = PeerName}) ->
lager:error("Client ~s: MQTT detected network error '~p'", [PeerName, Reason]),
lager:warning("Client ~s: MQTT detected network error '~p'", [PeerName, Reason]),
stop({shutdown, conn_closed}, State).
run_socket(State = #state{conn_state = blocked}) ->