mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed some debug info
This commit is contained in:
parent
16c4e2cef4
commit
c85209693f
@ -67,7 +67,6 @@ static const uint32_t INTEGRITY_CHECK_PERIOD = 60*31; // 31 minutes
|
|||||||
/*
|
/*
|
||||||
* #define GEN_EXCH_DEBUG 1
|
* #define GEN_EXCH_DEBUG 1
|
||||||
*/
|
*/
|
||||||
#define GEN_EXCH_DEBUG 1
|
|
||||||
|
|
||||||
#if defined(GEN_EXCH_DEBUG)
|
#if defined(GEN_EXCH_DEBUG)
|
||||||
static const uint32_t service_to_print = RS_SERVICE_GXS_TYPE_FORUMS;// use this to allow to this service id only, or 0 for all services
|
static const uint32_t service_to_print = RS_SERVICE_GXS_TYPE_FORUMS;// use this to allow to this service id only, or 0 for all services
|
||||||
@ -91,7 +90,7 @@ static std::ostream& gxsgenexchangedebug(uint32_t service_type)
|
|||||||
static nullstream null ;
|
static nullstream null ;
|
||||||
|
|
||||||
if (service_to_print==0 || service_type == 0 || (service_type == service_to_print))
|
if (service_to_print==0 || service_type == 0 || (service_type == service_to_print))
|
||||||
return std::cerr << time(NULL) << ":GXSDATASERVICE service " << std::hex << service_type << std::dec << ": " ;
|
return std::cerr << time(NULL) << ":RSGENEXCHANGE service " << std::hex << service_type << std::dec << ": " ;
|
||||||
else
|
else
|
||||||
return null ;
|
return null ;
|
||||||
}
|
}
|
||||||
@ -281,8 +280,6 @@ void RsGenExchange::threadTick()
|
|||||||
|
|
||||||
void RsGenExchange::tick()
|
void RsGenExchange::tick()
|
||||||
{
|
{
|
||||||
GXSGENEXCHANGEDEBUG << "RsGenExchange::tick(): mGrpNotify size=" << mGrpNotify.size() << ", mMsgNotify size=" << mMsgNotify.size() << std::endl;
|
|
||||||
|
|
||||||
// Meta Changes should happen first.
|
// Meta Changes should happen first.
|
||||||
// This is important, as services want to change Meta, then get results.
|
// This is important, as services want to change Meta, then get results.
|
||||||
// Services shouldn't rely on this ordering - but some do.
|
// Services shouldn't rely on this ordering - but some do.
|
||||||
@ -541,7 +538,7 @@ uint8_t RsGenExchange::createGroup(RsNxsGrp *grp, RsTlvSecurityKeySet& keySet)
|
|||||||
|
|
||||||
if(!privKeyFound)
|
if(!privKeyFound)
|
||||||
{
|
{
|
||||||
GXSGENEXCHANGEDEBUG << "RsGenExchange::createGroup() Missing private ADMIN Key" << std::endl;
|
std::cerr << "RsGenExchange::createGroup() Missing private ADMIN Key" << std::endl;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
/***********
|
/***********
|
||||||
* #define DATA_DEBUG 1
|
* #define DATA_DEBUG 1
|
||||||
**********/
|
**********/
|
||||||
#define DATA_DEBUG 1
|
|
||||||
|
|
||||||
// Debug system to allow to print only for some services (group, Peer, etc)
|
// Debug system to allow to print only for some services (group, Peer, etc)
|
||||||
|
|
||||||
@ -92,7 +91,7 @@ bool RsGxsDataAccess::requestGroupInfo( uint32_t &token, uint32_t ansType, const
|
|||||||
{
|
{
|
||||||
if(groupIds.empty())
|
if(groupIds.empty())
|
||||||
{
|
{
|
||||||
GXSDATADEBUG << __PRETTY_FUNCTION__ << " (WW) Group Id list is empty!" << std::endl;
|
std::cerr << __PRETTY_FUNCTION__ << " (WW) Group Id list is empty!" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1847,6 +1846,7 @@ bool RsGxsDataAccess::disposeOfPublicToken(uint32_t token)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DATA_DEBUG
|
||||||
void RsGxsDataAccess::dumpTokenQueues()
|
void RsGxsDataAccess::dumpTokenQueues()
|
||||||
{
|
{
|
||||||
RS_STACK_MUTEX(mDataMutex);
|
RS_STACK_MUTEX(mDataMutex);
|
||||||
@ -1864,6 +1864,8 @@ void RsGxsDataAccess::dumpTokenQueues()
|
|||||||
|
|
||||||
GXSDATADEBUG << std::endl;
|
GXSDATADEBUG << std::endl;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool RsGxsDataAccess::checkGrpFilter(const RsTokReqOptions &opts, const std::shared_ptr<RsGxsGrpMetaData>& meta) const
|
bool RsGxsDataAccess::checkGrpFilter(const RsTokReqOptions &opts, const std::shared_ptr<RsGxsGrpMetaData>& meta) const
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -494,6 +494,8 @@ bool p3Posted::setPostReadStatus(const RsGxsGrpMsgIdPair& msgId, bool read)
|
|||||||
std::cerr << __PRETTY_FUNCTION__ << " Error! GXS operation failed." << std::endl;
|
std::cerr << __PRETTY_FUNCTION__ << " Error! GXS operation failed." << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
RsGxsGrpMsgIdPair p;
|
||||||
|
acknowledgeMsg(token,p);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool p3Posted::editBoard(RsPostedGroup& board)
|
bool p3Posted::editBoard(RsPostedGroup& board)
|
||||||
|
Loading…
Reference in New Issue
Block a user