Temp: log raw CMSG_AUTH_SESSION at ERROR level for 12.1.0 layout reversal
Build (Windows x64) / build (push) Canceled after 0s
Build (Windows x64) / linux-build (push) Canceled after 0s

This commit is contained in:
devbox
2026-08-15 12:41:57 +10:00
parent 8138dcf185
commit f88f29651b
2 changed files with 13 additions and 1 deletions
@@ -85,7 +85,7 @@ namespace WorldPackets::Auth
rawHex.push_back(hexDigits[b & 0xF]);
rawHex.push_back(' ');
}
TC_LOG_INFO("network", "CMSG_AUTH_SESSION raw (%zu bytes): {}", _worldPacket.size(), rawHex);
TC_LOG_ERROR("network", "CMSG_AUTH_SESSION raw (%zu bytes): {}", _worldPacket.size(), rawHex);
uint32 realmJoinTicketSize;
+12
View File
@@ -614,6 +614,18 @@ WorldSocket::ReadDataHandlerResult WorldSocket::HandleAuthSession(WorldPacket&&
{
LogOpcodeText(CMSG_AUTH_SESSION);
std::string rawHex;
rawHex.reserve(packet.size() * 3);
static constexpr char hexDigits[] = "0123456789ABCDEF";
for (std::size_t i = 0; i < packet.size(); ++i)
{
uint8 b = packet[i];
rawHex.push_back(hexDigits[b >> 4]);
rawHex.push_back(hexDigits[b & 0xF]);
rawHex.push_back(' ');
}
TC_LOG_ERROR("network", "CMSG_AUTH_SESSION raw (%zu bytes): {}", packet.size(), rawHex);
if (_authed)
{
std::scoped_lock guard(_worldSessionLock);