Turn certain debug messages into full error logs
This commit is contained in:
parent
c53a5098bd
commit
4b5c31b36a
|
|
@ -191,8 +191,8 @@ hdr_sent({protocol_header_received, 0, 1, 0, 0}, State) ->
|
|||
end;
|
||||
hdr_sent({protocol_header_received, Protocol, Maj, Min,
|
||||
Rev}, State) ->
|
||||
?DBG("Unsupported protocol version: ~b ~b.~b.~b~n",
|
||||
[Protocol, Maj, Min, Rev]),
|
||||
error_logger:warning_msg("Unsupported protocol version: ~b ~b.~b.~b~n",
|
||||
[Protocol, Maj, Min, Rev]),
|
||||
{stop, normal, State}.
|
||||
|
||||
open_sent(#'v1_0.open'{max_frame_size = MFSz, idle_time_out = Timeout},
|
||||
|
|
@ -237,7 +237,8 @@ opened(#'v1_0.close'{error = Error}, State = #state{config = Config}) ->
|
|||
_ = send_close(State, none),
|
||||
{stop, normal, State};
|
||||
opened(Frame, State) ->
|
||||
?DBG("UNEXPECTED CONNECTION FRAME ~p~n", [Frame]),
|
||||
error_logger:warning_msg("Unexpected connection frame ~p when in state ~p ~n",
|
||||
[Frame, State]),
|
||||
{next_state, opened, State}.
|
||||
|
||||
close_sent(#'v1_0.close'{}, State) ->
|
||||
|
|
|
|||
|
|
@ -399,7 +399,8 @@ mapped(#'v1_0.disposition'{role = true, settled = true, first = {uint, First},
|
|||
|
||||
{next_state, mapped, State#state{unsettled = Unsettled}};
|
||||
mapped(Frame, State) ->
|
||||
?DBG("UNHANDLED FRAME ~p~n", [Frame]),
|
||||
error_logger:warning_msg("Unhandled session frame ~p in state ~p~n",
|
||||
[Frame, State]),
|
||||
{next_state, mapped, State}.
|
||||
|
||||
%% mapped/3
|
||||
|
|
|
|||
Loading…
Reference in New Issue