From ded77355729301214c631e4d7180398cedd38f37 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 17 Oct 2013 17:54:25 -0700 Subject: [PATCH] remove crazy debug from testing --- assignment-client/src/avatars/AvatarMixer.cpp | 1 - interface/src/Application.cpp | 1 + libraries/shared/src/NodeList.cpp | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assignment-client/src/avatars/AvatarMixer.cpp b/assignment-client/src/avatars/AvatarMixer.cpp index b7720cee04..4e58f0b014 100644 --- a/assignment-client/src/avatars/AvatarMixer.cpp +++ b/assignment-client/src/avatars/AvatarMixer.cpp @@ -129,7 +129,6 @@ void AvatarMixer::run() { if (nodeList->getNodeSocket()->receive(&nodeAddress, packetData, &receivedBytes) && packetVersionMatch(packetData)) { - qDebug() << "Received a packet with header" << packetData[0] << "\n"; switch (packetData[0]) { case PACKET_TYPE_HEAD_DATA: nodeUUID = QUuid::fromRfc4122(QByteArray((char*) packetData + numBytesForPacketHeader(packetData), diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 8f08b75a93..635e6d9e98 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3696,6 +3696,7 @@ void* Application::networkReceive(void* args) { app->_bytesCount += bytesReceived; if (packetVersionMatch(app->_incomingPacket)) { + qDebug() << "Received a packet with header" << app->_incomingPacket[0] << "\n"; // only process this packet if we have a match on the packet version switch (app->_incomingPacket[0]) { case PACKET_TYPE_TRANSMITTER_DATA_V2: diff --git a/libraries/shared/src/NodeList.cpp b/libraries/shared/src/NodeList.cpp index 678a1843fc..5b25a3dde1 100644 --- a/libraries/shared/src/NodeList.cpp +++ b/libraries/shared/src/NodeList.cpp @@ -599,7 +599,6 @@ void NodeList::pingPublicAndLocalSocketsForInactiveNode(Node* node) const { currentTime = usecTimestampNow(); memcpy(pingPacket + numHeaderBytes, ¤tTime, sizeof(currentTime)); - qDebug() << "Attemping to ping" << *node << "\n"; // send the ping packet to the local and public sockets for this node _nodeSocket.send(node->getLocalSocket(), pingPacket, sizeof(pingPacket)); _nodeSocket.send(node->getPublicSocket(), pingPacket, sizeof(pingPacket)); @@ -680,8 +679,7 @@ void NodeList::possiblyPingInactiveNodes() { gettimeofday(&lastPing, NULL); for(NodeList::iterator node = begin(); node != end(); node++) { - if (!node->getActiveSocket()) { - qDebug() << "Attempting to ping node" << *node << "\n"; + if (!node->getActiveSocket()) {g // we don't have an active link to this node, ping it to set that up pingPublicAndLocalSocketsForInactiveNode(&(*node)); }