mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
Suppress repeated Hash mismatch debug messages
This commit is contained in:
parent
7e36c51edc
commit
4460e23b68
1 changed files with 8 additions and 1 deletions
|
@ -209,8 +209,15 @@ bool LimitedNodeList::packetVersionAndHashMatch(const QByteArray& packet) {
|
||||||
if (hashFromPacketHeader(packet) == hashForPacketAndConnectionUUID(packet, sendingNode->getConnectionSecret())) {
|
if (hashFromPacketHeader(packet) == hashForPacketAndConnectionUUID(packet, sendingNode->getConnectionSecret())) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
static QMultiMap<QUuid, PacketType> hashDebugSuppressMap;
|
||||||
|
|
||||||
|
QUuid senderUUID = uuidFromPacketHeader(packet);
|
||||||
|
if (!hashDebugSuppressMap.contains(senderUUID, checkType)) {
|
||||||
qDebug() << "Packet hash mismatch on" << checkType << "- Sender"
|
qDebug() << "Packet hash mismatch on" << checkType << "- Sender"
|
||||||
<< uuidFromPacketHeader(packet);
|
<< uuidFromPacketHeader(packet);
|
||||||
|
|
||||||
|
hashDebugSuppressMap.insert(senderUUID, checkType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
static QString repeatedMessage
|
static QString repeatedMessage
|
||||||
|
|
Loading…
Reference in a new issue