removed more debug info

This commit is contained in:
csoler 2020-07-23 22:05:45 +02:00
parent 7d21390d03
commit ed0e0f1da1
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 7 additions and 2 deletions

View File

@ -1463,7 +1463,9 @@ bool p3GxsCircles::locked_processLoadingCacheEntry(RsGxsCircleCache& cache)
} }
else else
{ {
#ifdef DEBUG_CIRCLES
std::cerr << " (WW) cache entry for circle " << cache.mCircleId << " has empty originator. Asking info for GXS id " << pit->first << " to all connected friends." << std::endl; std::cerr << " (WW) cache entry for circle " << cache.mCircleId << " has empty originator. Asking info for GXS id " << pit->first << " to all connected friends." << std::endl;
#endif
rsPeers->getOnlineList(peers) ; rsPeers->getOnlineList(peers) ;
} }

View File

@ -1251,8 +1251,9 @@ bool p3IdService::requestKey(const RsGxsId &id, const std::list<RsPeerId>& peers
if( info.mOverallReputationLevel == RsReputationLevel::LOCALLY_NEGATIVE ) if( info.mOverallReputationLevel == RsReputationLevel::LOCALLY_NEGATIVE )
{ {
RsInfo() << __PRETTY_FUNCTION__ << " not requesting Key " << id #ifdef DEBUG_IDS
<< " because it has been banned." << std::endl; RsInfo() << __PRETTY_FUNCTION__ << " not requesting Key " << id << " because it has been banned." << std::endl;
#endif
RS_STACK_MUTEX(mIdMtx); RS_STACK_MUTEX(mIdMtx);
mIdsNotPresent.erase(id); mIdsNotPresent.erase(id);
@ -2961,7 +2962,9 @@ void p3IdService::requestIdsFromNet()
if(mKeyCache.fetch(cit->first,data)) if(mKeyCache.fetch(cit->first,data))
{ {
#ifdef DEBUG_IDS
std::cerr << __PRETTY_FUNCTION__ << ". Dropping request for ID " << cit->first << " at last minute, because it was found in cache"<< std::endl; std::cerr << __PRETTY_FUNCTION__ << ". Dropping request for ID " << cit->first << " at last minute, because it was found in cache"<< std::endl;
#endif
auto tmp(cit); auto tmp(cit);
++tmp; ++tmp;
mIdsNotPresent.erase(cit); mIdsNotPresent.erase(cit);