Display data that is send to websocket connection in debug log level

This should help with detecting problems like in #1097
This commit is contained in:
Paweł Chmielowski 2016-07-28 16:20:13 +02:00
parent fad088a3c4
commit fd365b2893
1 changed files with 1 additions and 0 deletions

View File

@ -1862,6 +1862,7 @@ send_text(StateData, Text) ->
send_element(StateData, El) when StateData#state.mgmt_state == pending ->
?DEBUG("Cannot send element while waiting for resumption: ~p", [El]);
send_element(StateData, El) when StateData#state.xml_socket ->
?DEBUG("Send XML on stream = ~p", [fxml:element_to_binary(El)]),
(StateData#state.sockmod):send_xml(StateData#state.socket,
{xmlstreamelement, El});
send_element(StateData, El) ->