mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 11:00:14 -05:00
removed debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5563 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
77edd3e013
commit
9e00688c71
@ -324,8 +324,10 @@ void bdNode::iteration()
|
||||
/* Disable Queries if our Ping Queue is too long */
|
||||
if (mPotentialPeers.size() > mMaxAllowedMsgs * BDNODE_MAX_POTENTIAL_PEERS_MULTIPLIER)
|
||||
{
|
||||
#ifdef DEBUG_NODE_MULTIPEER
|
||||
std::cerr << "bdNode::iteration() Disabling Queries until PotentialPeer Queue reduced";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
allowedPings = mMaxAllowedMsgs;
|
||||
}
|
||||
|
||||
@ -1694,12 +1696,14 @@ void bdNode::msgin_pong(bdId *id, bdToken *transId, bdToken *versionId)
|
||||
if ((sameDhtVersion) && (!sameDhtEngine))
|
||||
{
|
||||
sameDhtVersion = false;
|
||||
#ifdef DEBUG_NODE_MSGIN
|
||||
std::cerr << "bdNode::msgin_pong() STRANGE Peer Version: ";
|
||||
for(uint32_t i = 0; i < versionId->len; i++)
|
||||
{
|
||||
std::cerr << versionId->data[i];
|
||||
}
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* check two bytes */
|
||||
|
@ -189,9 +189,11 @@ void bdQueryManager::addQuery(const bdNodeId *id, uint32_t qflags)
|
||||
|
||||
mNodeSpace->find_nearest_nodes(id, BITDHT_QUERY_START_PEERS, nearest);
|
||||
|
||||
#ifdef DEBUG_NODE_ACTIONS
|
||||
fprintf(stderr, "bdQueryManager::addQuery(");
|
||||
mFns->bdPrintNodeId(std::cerr, id);
|
||||
fprintf(stderr, ")\n");
|
||||
#endif
|
||||
|
||||
for(it = nearest.begin(); it != nearest.end(); it++)
|
||||
{
|
||||
|
@ -239,8 +239,10 @@ void bdStore::writeStore(std::string file)
|
||||
|
||||
if(!bdFile::renameFile(filetmp,file))
|
||||
std::cerr << "Could not rename file !!" << std::endl;
|
||||
#ifdef DEBUG_STORE
|
||||
else
|
||||
std::cerr << "Successfully renamed file " << filetmp << " to " << file << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
void bdStore::writeStore()
|
||||
|
@ -1111,6 +1111,7 @@ int p3BitDht::minuteTick()
|
||||
|
||||
double denom = deltaT;
|
||||
|
||||
#ifdef DEBUG_PEERNET_COMMON
|
||||
std::cerr << "p3BitDht::minuteTick() ";
|
||||
std::cerr << "DhtRead: " << dhtRead / denom << " kB/s ";
|
||||
std::cerr << "DhtWrite: " << dhtWrite / denom << " kB/s ";
|
||||
@ -1121,6 +1122,7 @@ int p3BitDht::minuteTick()
|
||||
std::cerr << "RelayWrite: " << relayWrite / denom << " kB/s ";
|
||||
std::cerr << "RelayRelayed: " << relayRelayed / denom << " kB/s ";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
|
||||
RsStackMutex stack(dhtMtx); /********** LOCKED MUTEX ***************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user