removed some debugging

This commit is contained in:
ZappoMan 2013-12-12 11:07:13 -08:00
parent 28c5d5b7bf
commit bc80862825
3 changed files with 8 additions and 7 deletions

View file

@ -42,7 +42,7 @@ void OctreeInboundPacketProcessor::resetStats() {
void OctreeInboundPacketProcessor::processPacket(const HifiSockAddr& senderSockAddr,
unsigned char* packetData, ssize_t packetLength) {
bool debugProcessPacket = true; //_myServer->wantsVerboseDebug();
bool debugProcessPacket = _myServer->wantsVerboseDebug();
if (debugProcessPacket) {
printf("OctreeInboundPacketProcessor::processPacket() packetData=%p packetLength=%ld\n", packetData, packetLength);

View file

@ -40,7 +40,6 @@ void ParticleServer::beforeRun() {
}
void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
printf("ParticleServer::particleCreated(newParticle.creatorTokenID=%u, senderNode)\n",newParticle.getCreatorTokenID());
unsigned char outputBuffer[MAX_PACKET_SIZE];
unsigned char* copyAt = outputBuffer;
@ -63,5 +62,4 @@ void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
NodeList::getInstance()->getNodeSocket().writeDatagram((char*) outputBuffer, packetLength,
node->getActiveSocket()->getAddress(),
node->getActiveSocket()->getPort());
printf("ParticleServer::particleCreated() called writeDatagram() packetLength=%d\n", packetLength);
}

View file

@ -236,10 +236,13 @@ Particle Particle::fromEditPacket(unsigned char* data, int length, int& processe
dataAt += scriptLength;
processedBytes += scriptLength;
printf("Particle::fromEditPacket()...\n");
printf(" Particle id in packet:%u\n", editID);
newParticle.debugDump();
const bool wantDebugging = false;
if (wantDebugging) {
printf("Particle::fromEditPacket()...\n");
printf(" Particle id in packet:%u\n", editID);
newParticle.debugDump();
}
return newParticle;
}