removed annoying warning when a circle is empty

This commit is contained in:
csoler 2016-06-11 17:20:22 -04:00
parent 373d41bc63
commit eb9025d9a4

View File

@ -762,8 +762,10 @@ void RsGxsNetService::syncWithPeers()
if(encryptSingleNxsItem(msg, encrypt_to_this_circle_id, grpId, encrypted_item, status)) if(encryptSingleNxsItem(msg, encrypt_to_this_circle_id, grpId, encrypted_item, status))
sendItem(encrypted_item) ; sendItem(encrypted_item) ;
#ifdef NXS_NET_DEBUG_7
else else
std::cerr << "(WW) could not encrypt for circle ID " << encrypt_to_this_circle_id << ". Not yet in cache?" << std::endl; GXSNETDEBUG_PG(*sit,grpId) << "(WW) could not encrypt for circle ID " << encrypt_to_this_circle_id << ". Not yet in cache?" << std::endl;
#endif
delete msg ; delete msg ;
} }
@ -3685,7 +3687,9 @@ bool RsGxsNetService::encryptSingleNxsItem(RsNxsItem *item, const RsGxsCircleId&
if(recipients.empty()) if(recipients.empty())
{ {
std::cerr << " (EE) No recipients found for circle " << destination_circle << ". Circle not in cache, or empty circle?" << std::endl; #ifdef NXS_NET_DEBUG_7
GXSNETDEBUG_P_(item->PeerId()) << " (EE) No recipients found for circle " << destination_circle << ". Circle not in cache, or empty circle?" << std::endl;
#endif
return false ; return false ;
} }