suppressed some debug info

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3970 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-01-20 22:18:42 +00:00
parent 635f0f51f1
commit 2fd623bfed
2 changed files with 12 additions and 2 deletions

View File

@ -264,10 +264,10 @@ void bdNodeManager::iteration()
uint32_t nodeSpaceSize = mNodeSpace.calcSpaceSize();
#ifdef DEBUG_MGR
#endif
std::cerr << "bdNodeManager::iteration() Finding Oneself: ";
std::cerr << "NodeSpace Size:" << nodeSpaceSize;
std::cerr << std::endl;
#endif
if (nodeSpaceSize > TRANSITION_OP_SPACE_SIZE)
{
@ -423,7 +423,9 @@ void bdNodeManager::QueryRandomLocalNet()
int bdNodeManager::status()
{
/* do status of bdNode */
#ifdef DEBUG_MGR
printState();
#endif
checkStatus();
@ -1006,18 +1008,26 @@ bdDebugCallback::~bdDebugCallback()
int bdDebugCallback::dhtPeerCallback(const bdNodeId *id, uint32_t status)
{
#ifdef DEBUG_MGR
std::cerr << "bdDebugCallback::dhtPeerCallback() Id: ";
#endif
bdStdPrintNodeId(std::cerr, id);
#ifdef DEBUG_MGR
std::cerr << " status: " << std::hex << status << std::dec << std::endl;
#endif
return 1;
}
int bdDebugCallback::dhtValueCallback(const bdNodeId *id, std::string key, uint32_t status)
{
#ifdef DEBUG_MGR
std::cerr << "bdDebugCallback::dhtValueCallback() Id: ";
#endif
bdStdPrintNodeId(std::cerr, id);
#ifdef DEBUG_MGR
std::cerr << " key: " << key;
std::cerr << " status: " << std::hex << status << std::dec << std::endl;
#endif
return 1;
}

View File

@ -596,12 +596,12 @@ int bdSpace::add_peer(const bdId *id, uint32_t peerflags)
buck.entries.push_back(newPeer);
#ifdef DEBUG_BD_SPACE
#endif
/* useful debug */
std::cerr << "bdSpace::add_peer() Added Bucket[";
std::cerr << bucket << "] Entry: ";
mFns->bdPrintId(std::cerr, id);
std::cerr << std::endl;
#endif
}
return add;
}