removed additional debug info

This commit is contained in:
csoler 2019-01-29 13:37:47 +01:00
parent b44d2c8772
commit ef2e40c012
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 9 additions and 2 deletions

View File

@ -753,8 +753,9 @@ bool p3GxsTrans::handleEncryptedMail(const RsGxsTransMailItem* mail)
// Hint match none of our own ids // Hint match none of our own ids
if(decryptIds.empty()) if(decryptIds.empty())
{ {
std::cout << "p3GxsTrans::handleEcryptedMail(...) hint doesn't match" #ifdef DEBUG_GXSTRANS
<< std::endl; std::cout << "p3GxsTrans::handleEcryptedMail(...) hint doesn't match" << std::endl;
#endif
return true; return true;
} }

View File

@ -1387,7 +1387,9 @@ bool p3turtle::getTunnelServiceInfo(TurtleTunnelId tunnel_id,RsPeerId& vpid,RsFi
if(it == _incoming_file_hashes.end()) if(it == _incoming_file_hashes.end())
{ {
#ifdef P3TURTLE_DEBUG
std::cerr << "p3turtle::handleRecvGenericTunnelItem(): hash " << hash << " for client side tunnel endpoint " << std::hex << tunnel_id << std::dec << " has been removed (probably a late response)! Dropping the item. " << std::endl; std::cerr << "p3turtle::handleRecvGenericTunnelItem(): hash " << hash << " for client side tunnel endpoint " << std::hex << tunnel_id << std::dec << " has been removed (probably a late response)! Dropping the item. " << std::endl;
#endif
return false; return false;
} }
@ -1399,7 +1401,9 @@ bool p3turtle::getTunnelServiceInfo(TurtleTunnelId tunnel_id,RsPeerId& vpid,RsFi
if(it == _outgoing_tunnel_client_services.end()) if(it == _outgoing_tunnel_client_services.end())
{ {
#ifdef P3TURTLE_DEBUG
std::cerr << "p3turtle::handleRecvGenericTunnelItem(): hash " << tunnel.hash << " for server side tunnel endpoint " << std::hex << tunnel_id << std::dec << " has been removed (probably a late response)! Dropping the item. " << std::endl; std::cerr << "p3turtle::handleRecvGenericTunnelItem(): hash " << tunnel.hash << " for server side tunnel endpoint " << std::hex << tunnel_id << std::dec << " has been removed (probably a late response)! Dropping the item. " << std::endl;
#endif
return false; return false;
} }
@ -1899,8 +1903,10 @@ void p3turtle::handleTunnelResult(RsTurtleTunnelOkItem *item)
new_vpid = _local_tunnels[item->tunnel_id].vpid ; // save it for off-mutex usage. new_vpid = _local_tunnels[item->tunnel_id].vpid ; // save it for off-mutex usage.
} }
} }
#ifdef P3TURTLE_DEBUG
if(!found) if(!found)
std::cerr << "p3turtle: error. Could not find hash that emmitted tunnel request " << reinterpret_cast<void*>(item->tunnel_id) << std::endl ; std::cerr << "p3turtle: error. Could not find hash that emmitted tunnel request " << reinterpret_cast<void*>(item->tunnel_id) << std::endl ;
#endif
} }
else else
{ // Nope, forward it back. { // Nope, forward it back.