commented out some debug info

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8501 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-06-16 19:11:07 +00:00
parent be774c866a
commit 49534d9efd
4 changed files with 14 additions and 1 deletions

View file

@ -973,9 +973,11 @@ int RsGenExchange::validateGrp(RsNxsGrp* grp)
bool RsGenExchange::checkAuthenFlag(const PrivacyBitPos& pos, const uint8_t& flag) const bool RsGenExchange::checkAuthenFlag(const PrivacyBitPos& pos, const uint8_t& flag) const
{ {
#ifdef GEN_EXCH_DEBUG
std::cerr << "RsGenExchange::checkMsgAuthenFlag(pos: " << pos << " flag: "; std::cerr << "RsGenExchange::checkMsgAuthenFlag(pos: " << pos << " flag: ";
std::cerr << (int) flag << " mAuthenPolicy: " << mAuthenPolicy << ")"; std::cerr << (int) flag << " mAuthenPolicy: " << mAuthenPolicy << ")";
std::cerr << std::endl; std::cerr << std::endl;
#endif
switch(pos) switch(pos)
{ {

View file

@ -1031,9 +1031,10 @@ bool RsGxsDataAccess::getMsgList(const GxsMsgReq& msgIds, const RsTokReqOptions&
* 1) No Flags => All Messages in those Groups. * 1) No Flags => All Messages in those Groups.
* *
*/ */
#ifdef DATA_DEBUG
std::cerr << "RsGxsDataAccess::getMsgList()"; std::cerr << "RsGxsDataAccess::getMsgList()";
std::cerr << std::endl; std::cerr << std::endl;
#endif
bool onlyOrigMsgs = false; bool onlyOrigMsgs = false;
bool onlyLatestMsgs = false; bool onlyLatestMsgs = false;
@ -1042,21 +1043,27 @@ bool RsGxsDataAccess::getMsgList(const GxsMsgReq& msgIds, const RsTokReqOptions&
// Can only choose one of these two. // Can only choose one of these two.
if (opts.mOptions & RS_TOKREQOPT_MSG_ORIGMSG) if (opts.mOptions & RS_TOKREQOPT_MSG_ORIGMSG)
{ {
#ifdef DATA_DEBUG
std::cerr << "RsGxsDataAccess::getMsgList() MSG_ORIGMSG"; std::cerr << "RsGxsDataAccess::getMsgList() MSG_ORIGMSG";
std::cerr << std::endl; std::cerr << std::endl;
#endif
onlyOrigMsgs = true; onlyOrigMsgs = true;
} }
else if (opts.mOptions & RS_TOKREQOPT_MSG_LATEST) else if (opts.mOptions & RS_TOKREQOPT_MSG_LATEST)
{ {
#ifdef DATA_DEBUG
std::cerr << "RsGxsDataAccess::getMsgList() MSG_LATEST"; std::cerr << "RsGxsDataAccess::getMsgList() MSG_LATEST";
std::cerr << std::endl; std::cerr << std::endl;
#endif
onlyLatestMsgs = true; onlyLatestMsgs = true;
} }
if (opts.mOptions & RS_TOKREQOPT_MSG_THREAD) if (opts.mOptions & RS_TOKREQOPT_MSG_THREAD)
{ {
#ifdef DATA_DEBUG
std::cerr << "RsGxsDataAccess::getMsgList() MSG_THREAD"; std::cerr << "RsGxsDataAccess::getMsgList() MSG_THREAD";
std::cerr << std::endl; std::cerr << std::endl;
#endif
onlyThreadHeadMsgs = true; onlyThreadHeadMsgs = true;
} }

View file

@ -1820,7 +1820,9 @@ void RsGxsNetService::locked_pushMsgTransactionFromList(std::list<RsNxsItem*>& r
if (!locked_addTransaction(newTrans)) if (!locked_addTransaction(newTrans))
delete newTrans; delete newTrans;
#ifdef NXS_NET_DEBUG
std::cerr << " Requested new transaction for " << reqList.size() << " items." << std::endl; std::cerr << " Requested new transaction for " << reqList.size() << " items." << std::endl;
#endif
} }
void RsGxsNetService::locked_genReqMsgTransaction(NxsTransaction* tr) void RsGxsNetService::locked_genReqMsgTransaction(NxsTransaction* tr)

View file

@ -255,7 +255,9 @@ bool p3IdService::loadList(std::list<RsItem*>& items)
bool p3IdService::saveList(bool& cleanup,std::list<RsItem*>& items) bool p3IdService::saveList(bool& cleanup,std::list<RsItem*>& items)
{ {
#ifdef DEBUG_IDS
std::cerr << "p3IdService::saveList()" << std::endl; std::cerr << "p3IdService::saveList()" << std::endl;
#endif
RS_STACK_MUTEX(mIdMtx) ; RS_STACK_MUTEX(mIdMtx) ;
cleanup = true ; cleanup = true ;