summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_ws.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_ws.cpp')
-rw-r--r--protocols/Steam/src/steam_ws.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_ws.cpp b/protocols/Steam/src/steam_ws.cpp
index f22587eca4..b84baf95e8 100644
--- a/protocols/Steam/src/steam_ws.cpp
+++ b/protocols/Steam/src/steam_ws.cpp
@@ -207,6 +207,10 @@ void CSteamProto::WSSend(EMsg msgType, const ProtobufCppMessage &msg)
void CSteamProto::WSSendHeader(EMsg msgType, const CMsgProtoBufHeader &hdr, const ProtobufCppMessage &msg)
{
+ auto *pszText = protobuf_c_text_to_string(&msg, 0);
+ debugLogA("Message sent: %s\r\n%s", msg.descriptor->c_name, pszText);
+ free(pszText);
+
uint32_t hdrLen = (uint32_t)protobuf_c_message_get_packed_size(&hdr);
MBinBuffer hdrbuf(hdrLen);
protobuf_c_message_pack(&hdr, (uint8_t *)hdrbuf.data());
@@ -220,7 +224,6 @@ void CSteamProto::WSSendHeader(EMsg msgType, const CMsgProtoBufHeader &hdr, cons
protobuf_c_message_pack(&msg, body.data());
hdrbuf.append(body);
- Netlib_Dump(HNETLIBCONN(m_ws->getConn()), hdrbuf.data(), hdrbuf.length(), true, 0);
m_ws->sendBinary(hdrbuf.data(), hdrbuf.length());
}