Temp: log raw CMSG_AUTH_SESSION at ERROR level for 12.1.0 layout reversal
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user