mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
removed some debug info
This commit is contained in:
parent
12acf6de35
commit
1bc2892753
@ -171,7 +171,9 @@ bool DistributedChatService::handleRecvChatLobbyMsgItem(RsChatMsgItem *ci)
|
|||||||
|
|
||||||
if(!rsIdentity->getIdDetails(cli->signature.keyId,details))
|
if(!rsIdentity->getIdDetails(cli->signature.keyId,details))
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_CHAT_LOBBIES
|
||||||
std::cerr << "(WW) cannot get ID " << cli->signature.keyId << " for checking signature of lobby item." << std::endl;
|
std::cerr << "(WW) cannot get ID " << cli->signature.keyId << " for checking signature of lobby item." << std::endl;
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -680,7 +682,9 @@ void DistributedChatService::handleRecvChatLobbyEventItem(RsChatLobbyEventItem *
|
|||||||
|
|
||||||
if(!rsIdentity->getIdDetails(item->signature.keyId,details))
|
if(!rsIdentity->getIdDetails(item->signature.keyId,details))
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_CHAT_LOBBIES
|
||||||
std::cerr << "(WW) cannot get ID " << item->signature.keyId << " for checking signature of lobby item." << std::endl;
|
std::cerr << "(WW) cannot get ID " << item->signature.keyId << " for checking signature of lobby item." << std::endl;
|
||||||
|
#endif
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "groutermatrix.h"
|
#include "groutermatrix.h"
|
||||||
#include "grouteritems.h"
|
#include "grouteritems.h"
|
||||||
|
|
||||||
#define ROUTING_MATRIX_DEBUG
|
//#define ROUTING_MATRIX_DEBUG
|
||||||
|
|
||||||
GRouterMatrix::GRouterMatrix()
|
GRouterMatrix::GRouterMatrix()
|
||||||
{
|
{
|
||||||
|
@ -924,8 +924,10 @@ int RsGenExchange::validateMsg(RsNxsMsg *msg, const uint32_t& grpFlag, const uin
|
|||||||
#endif
|
#endif
|
||||||
idValidate = false ;
|
idValidate = false ;
|
||||||
}
|
}
|
||||||
|
#ifdef GEN_EXCH_DEBUG
|
||||||
else
|
else
|
||||||
std::cerr << "RsGenExchange::validateMsg(): message from " << metaData.mAuthorId << ", accepted. Reputation score (" << details.mReputation.mOverallReputationScore <<") is above accepted threshold (" << reputation_threshold << ")" << std::endl;
|
std::cerr << "RsGenExchange::validateMsg(): message from " << metaData.mAuthorId << ", accepted. Reputation score (" << details.mReputation.mOverallReputationScore <<") is above accepted threshold (" << reputation_threshold << ")" << std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2000,7 +2000,9 @@ void RsGxsNetService::locked_genReqMsgTransaction(NxsTransaction* tr)
|
|||||||
|
|
||||||
if(rsReputations->isIdentityBanned(syncItem->authorId))
|
if(rsReputations->isIdentityBanned(syncItem->authorId))
|
||||||
{
|
{
|
||||||
|
#ifdef NXS_NET_DEBUG
|
||||||
std::cerr << ", Identity " << syncItem->authorId << " is banned. Not requesting message!" << std::endl;
|
std::cerr << ", Identity " << syncItem->authorId << " is banned. Not requesting message!" << std::endl;
|
||||||
|
#endif
|
||||||
continue ;
|
continue ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2220,7 +2222,9 @@ void RsGxsNetService::locked_genReqGrpTransaction(NxsTransaction* tr)
|
|||||||
|
|
||||||
if(!grpSyncItem->authorId.isNull() && rsReputations->isIdentityBanned(grpSyncItem->authorId))
|
if(!grpSyncItem->authorId.isNull() && rsReputations->isIdentityBanned(grpSyncItem->authorId))
|
||||||
{
|
{
|
||||||
|
#ifdef NXS_NET_DEBUG
|
||||||
std::cerr << " Identity " << grpSyncItem->authorId << " is banned. Not syncing group." << std::endl;
|
std::cerr << " Identity " << grpSyncItem->authorId << " is banned. Not syncing group." << std::endl;
|
||||||
|
#endif
|
||||||
continue ;
|
continue ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2241,10 +2245,14 @@ void RsGxsNetService::locked_genReqGrpTransaction(NxsTransaction* tr)
|
|||||||
if(rep.score >= GIXS_CUT_OFF)
|
if(rep.score >= GIXS_CUT_OFF)
|
||||||
{
|
{
|
||||||
addGroupItemToList(tr, grpId, transN, reqList);
|
addGroupItemToList(tr, grpId, transN, reqList);
|
||||||
|
#ifdef NXS_NET_DEBUG
|
||||||
std::cerr << " reputation cut off: limit=" << GIXS_CUT_OFF << " value=" << rep.score << ": allowed." << std::endl;
|
std::cerr << " reputation cut off: limit=" << GIXS_CUT_OFF << " value=" << rep.score << ": allowed." << std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
#ifdef NXS_NET_DEBUG
|
||||||
else
|
else
|
||||||
std::cerr << " reputation cut off: limit=" << GIXS_CUT_OFF << " value=" << rep.score << ": you shall not pass." << std::endl;
|
std::cerr << " reputation cut off: limit=" << GIXS_CUT_OFF << " value=" << rep.score << ": you shall not pass." << std::endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -195,7 +195,9 @@ void RetroShareLink::fromUrl(const QUrl& url)
|
|||||||
|
|
||||||
if (url.scheme() != RSLINK_SCHEME) {
|
if (url.scheme() != RSLINK_SCHEME) {
|
||||||
/* No RetroShare-Link */
|
/* No RetroShare-Link */
|
||||||
|
#ifdef DEBUG_RSLINK
|
||||||
std::cerr << "Not a RS link: scheme=" << url.scheme().toStdString() << std::endl;
|
std::cerr << "Not a RS link: scheme=" << url.scheme().toStdString() << std::endl;
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user