mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-24 05:49:29 -04:00
Major cleanup of Retroshare Logging - aimed at enabling proper UDP testing.
* Switched off most of std::cerr output. (expect UPnP) * moved pqi/pqidebug to util/rsdebug to allow greater usage. * added Mutexes to logging. * Downgraded many log messages to DEBUG. * New Log messages for connections, dht and udp code. * Added check for bad UDP socket. * Added check for non-firewalled scenario. * Increased Storage period from 1 Month to 6 Months for Links & Blog. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@644 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
afeb93d0f3
commit
d36b15d526
33 changed files with 867 additions and 346 deletions
|
@ -29,14 +29,14 @@
|
|||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "pqi/pqidebug.h"
|
||||
#include "util/rsdir.h"
|
||||
#include "util/rsdebug.h"
|
||||
const int p3facemsgzone = 11453;
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "rsiface/rstypes.h"
|
||||
#include "util/rsdir.h"
|
||||
#include "rsserver/p3msgs.h"
|
||||
|
||||
#include "services/p3msgservice.h"
|
||||
|
@ -74,8 +74,8 @@ bool p3Msgs::MessageSend(MessageInfo &info)
|
|||
/****************************************/
|
||||
bool p3Msgs::MessageDelete(std::string mid)
|
||||
{
|
||||
std::cerr << "p3Msgs::MessageDelete() ";
|
||||
std::cerr << "mid: " << mid << std::endl;
|
||||
//std::cerr << "p3Msgs::MessageDelete() ";
|
||||
//std::cerr << "mid: " << mid << std::endl;
|
||||
|
||||
mMsgSrv -> removeMsgId(mid);
|
||||
|
||||
|
@ -84,8 +84,8 @@ bool p3Msgs::MessageDelete(std::string mid)
|
|||
|
||||
bool p3Msgs::MessageRead(std::string mid)
|
||||
{
|
||||
std::cerr << "p3Msgs::MessageRead() ";
|
||||
std::cerr << "mid: " << mid << std::endl;
|
||||
//std::cerr << "p3Msgs::MessageRead() ";
|
||||
//std::cerr << "mid: " << mid << std::endl;
|
||||
|
||||
mMsgSrv -> markMsgIdRead(mid);
|
||||
|
||||
|
@ -150,14 +150,14 @@ void p3Msgs::initRsChatInfo(RsChatItem *c, ChatInfo &i)
|
|||
i.msg = c -> message;
|
||||
if (c -> chatFlags & RS_CHAT_FLAG_PRIVATE)
|
||||
{
|
||||
std::cerr << "RsServer::initRsChatInfo() Chat Private!!!";
|
||||
i.chatflags = RS_CHAT_PRIVATE;
|
||||
//std::cerr << "RsServer::initRsChatInfo() Chat Private!!!";
|
||||
}
|
||||
else
|
||||
{
|
||||
i.chatflags = RS_CHAT_PUBLIC;
|
||||
std::cerr << "RsServer::initRsChatInfo() Chat Public!!!";
|
||||
//std::cerr << "RsServer::initRsChatInfo() Chat Public!!!";
|
||||
}
|
||||
std::cerr << std::endl;
|
||||
//std::cerr << std::endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue