mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
635f0f51f1
commit
2fd623bfed
@ -264,10 +264,10 @@ void bdNodeManager::iteration()
|
|||||||
uint32_t nodeSpaceSize = mNodeSpace.calcSpaceSize();
|
uint32_t nodeSpaceSize = mNodeSpace.calcSpaceSize();
|
||||||
|
|
||||||
#ifdef DEBUG_MGR
|
#ifdef DEBUG_MGR
|
||||||
#endif
|
|
||||||
std::cerr << "bdNodeManager::iteration() Finding Oneself: ";
|
std::cerr << "bdNodeManager::iteration() Finding Oneself: ";
|
||||||
std::cerr << "NodeSpace Size:" << nodeSpaceSize;
|
std::cerr << "NodeSpace Size:" << nodeSpaceSize;
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (nodeSpaceSize > TRANSITION_OP_SPACE_SIZE)
|
if (nodeSpaceSize > TRANSITION_OP_SPACE_SIZE)
|
||||||
{
|
{
|
||||||
@ -423,7 +423,9 @@ void bdNodeManager::QueryRandomLocalNet()
|
|||||||
int bdNodeManager::status()
|
int bdNodeManager::status()
|
||||||
{
|
{
|
||||||
/* do status of bdNode */
|
/* do status of bdNode */
|
||||||
|
#ifdef DEBUG_MGR
|
||||||
printState();
|
printState();
|
||||||
|
#endif
|
||||||
|
|
||||||
checkStatus();
|
checkStatus();
|
||||||
|
|
||||||
@ -1006,18 +1008,26 @@ bdDebugCallback::~bdDebugCallback()
|
|||||||
|
|
||||||
int bdDebugCallback::dhtPeerCallback(const bdNodeId *id, uint32_t status)
|
int bdDebugCallback::dhtPeerCallback(const bdNodeId *id, uint32_t status)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_MGR
|
||||||
std::cerr << "bdDebugCallback::dhtPeerCallback() Id: ";
|
std::cerr << "bdDebugCallback::dhtPeerCallback() Id: ";
|
||||||
|
#endif
|
||||||
bdStdPrintNodeId(std::cerr, id);
|
bdStdPrintNodeId(std::cerr, id);
|
||||||
|
#ifdef DEBUG_MGR
|
||||||
std::cerr << " status: " << std::hex << status << std::dec << std::endl;
|
std::cerr << " status: " << std::hex << status << std::dec << std::endl;
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int bdDebugCallback::dhtValueCallback(const bdNodeId *id, std::string key, uint32_t status)
|
int bdDebugCallback::dhtValueCallback(const bdNodeId *id, std::string key, uint32_t status)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_MGR
|
||||||
std::cerr << "bdDebugCallback::dhtValueCallback() Id: ";
|
std::cerr << "bdDebugCallback::dhtValueCallback() Id: ";
|
||||||
|
#endif
|
||||||
bdStdPrintNodeId(std::cerr, id);
|
bdStdPrintNodeId(std::cerr, id);
|
||||||
|
#ifdef DEBUG_MGR
|
||||||
std::cerr << " key: " << key;
|
std::cerr << " key: " << key;
|
||||||
std::cerr << " status: " << std::hex << status << std::dec << std::endl;
|
std::cerr << " status: " << std::hex << status << std::dec << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -596,12 +596,12 @@ int bdSpace::add_peer(const bdId *id, uint32_t peerflags)
|
|||||||
buck.entries.push_back(newPeer);
|
buck.entries.push_back(newPeer);
|
||||||
|
|
||||||
#ifdef DEBUG_BD_SPACE
|
#ifdef DEBUG_BD_SPACE
|
||||||
#endif
|
|
||||||
/* useful debug */
|
/* useful debug */
|
||||||
std::cerr << "bdSpace::add_peer() Added Bucket[";
|
std::cerr << "bdSpace::add_peer() Added Bucket[";
|
||||||
std::cerr << bucket << "] Entry: ";
|
std::cerr << bucket << "] Entry: ";
|
||||||
mFns->bdPrintId(std::cerr, id);
|
mFns->bdPrintId(std::cerr, id);
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return add;
|
return add;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user