summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Discord/src/gateway.cpp4
-rw-r--r--protocols/Discord/src/voice_client.cpp2
-rw-r--r--src/mir_app/src/netlib_websocket.cpp2
3 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp
index c038234aec..e3bf1b307c 100644
--- a/protocols/Discord/src/gateway.cpp
+++ b/protocols/Discord/src/gateway.cpp
@@ -25,9 +25,7 @@ bool CDiscordProto::GatewaySend(const JSONNode &pRoot)
if (!m_bConnected)
return false;
- json_string szText = pRoot.write();
- debugLogA("Gateway send: %s", szText.c_str());
- m_ws.sendText(szText.c_str());
+ m_ws.sendText(pRoot.write().c_str());
return true;
}
diff --git a/protocols/Discord/src/voice_client.cpp b/protocols/Discord/src/voice_client.cpp
index 1e20a93723..99d7668d74 100644
--- a/protocols/Discord/src/voice_client.cpp
+++ b/protocols/Discord/src/voice_client.cpp
@@ -61,9 +61,7 @@ void CDiscordVoiceCall::write(int op, JSONNode &d)
JSONNode payload;
payload << INT_PARAM("op", op) << d;
-
auto json = payload.write();
- ppro->debugLogA("Voice JSON sent: %s", json.c_str());
mir_cslock lck(m_cs);
m_ws->sendText(json.c_str());
diff --git a/src/mir_app/src/netlib_websocket.cpp b/src/mir_app/src/netlib_websocket.cpp
index 185e320636..196b22a816 100644
--- a/src/mir_app/src/netlib_websocket.cpp
+++ b/src/mir_app/src/netlib_websocket.cpp
@@ -187,6 +187,8 @@ static void WebSocket_Send(HNETLIBCONN nlc, const void *pData, int64_t dataLen,
void MWebSocket::sendText(const char *pData)
{
if (m_hConn && pData) {
+ Netlib_Dump(m_hConn, pData, strlen(pData), true, 0);
+
mir_cslock lck(m_cs);
WebSocket_Send(m_hConn, pData, strlen(pData), 1);
}