Log packet type of invalid packets.

This commit is contained in:
lotodore
2012-12-31 21:40:55 +01:00
parent eaa64cbc8c
commit cbed0685e9
+1 -1
View File
@@ -122,7 +122,7 @@ ReceiveBuffer::ScanPackets(boost::shared_ptr<SessionData> session)
if (validator.IsValidPacket(*tmpPacket)) {
receivedPackets.push_back(tmpPacket);
} else {
LOG_ERROR("Session " << session->GetId() << " - Invalid packet!");
LOG_ERROR("Session " << session->GetId() << " - Invalid packet: " << tmpPacket->GetMsg()->messagetype());
}
} else {
dataAvailable = false;