ejabberd_http: Log debug message on receive errors

This commit is contained in:
Holger Weiss 2015-12-20 23:26:57 +01:00
parent 48909bdbee
commit d039b9b72b
1 changed files with 3 additions and 1 deletions

View File

@ -518,7 +518,9 @@ recv_data(State, Len, Acc) ->
of
{ok, Data} ->
recv_data(State, Len - byte_size(Data), <<Acc/binary, Data/binary>>);
_ -> <<"">>
Err ->
?DEBUG("Cannot receive HTTP data: ~p", [Err]),
<<"">>
end;
_ ->
Trail = (State#state.trail),