From ece229dc14839efafce9425e6da20d06e53c7bc6 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 17 Sep 2012 20:46:23 +0000 Subject: [PATCH] removed debug info git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5563 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- src/bitdht/bdnode.cc | 4 ++++ src/bitdht/bdquerymgr.cc | 2 ++ src/bitdht/bdstore.cc | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/bitdht/bdnode.cc b/src/bitdht/bdnode.cc index 9e024b0..32e5a62 100644 --- a/src/bitdht/bdnode.cc +++ b/src/bitdht/bdnode.cc @@ -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 */ diff --git a/src/bitdht/bdquerymgr.cc b/src/bitdht/bdquerymgr.cc index e09512f..41cc85f 100644 --- a/src/bitdht/bdquerymgr.cc +++ b/src/bitdht/bdquerymgr.cc @@ -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++) { diff --git a/src/bitdht/bdstore.cc b/src/bitdht/bdstore.cc index b78cc8f..d0dfc8b 100644 --- a/src/bitdht/bdstore.cc +++ b/src/bitdht/bdstore.cc @@ -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()