From d3f9aa0443fdf979bd03f6c559066f2fb5842c2b Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 28 Aug 2007 14:12:49 +0000 Subject: Slight change to traffic logging, as I never remember which way the damn arrows go: I now means in, O now means out. C and S remain unchanged git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7948 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 2 +- src/modules/m_spanningtree/treesocket2.cpp | 4 ++-- src/users.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command_parse.cpp b/src/command_parse.cpp index e0085f9d7..c273e0859 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -425,7 +425,7 @@ void CommandParser::ProcessBuffer(std::string &buffer,userrec *user) { if (!user->muted) { - ServerInstance->Log(DEBUG,"C[%d] -> :%s %s",user->GetFd(), user->nick, buffer.c_str()); + ServerInstance->Log(DEBUG,"C[%d] I :%s %s",user->GetFd(), user->nick, buffer.c_str()); this->ProcessCommand(user,buffer); } } diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 33764c015..17477a016 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -34,7 +34,7 @@ static std::map warned; /* Server names that hav int TreeSocket::WriteLine(std::string line) { - Instance->Log(DEBUG, "S[%d] -> %s", this->GetFd(), line.c_str()); + Instance->Log(DEBUG, "S[%d] O %s", this->GetFd(), line.c_str()); line.append("\r\n"); return this->Write(line); } @@ -1011,7 +1011,7 @@ bool TreeSocket::ProcessLine(std::string &line) if (line.empty()) return true; - Instance->Log(DEBUG, "S[%d] <- %s", this->GetFd(), line.c_str()); + Instance->Log(DEBUG, "S[%d] I %s", this->GetFd(), line.c_str()); this->Split(line.c_str(),params); diff --git a/src/users.cpp b/src/users.cpp index 4856ebc38..06aba8fca 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1384,7 +1384,7 @@ void userrec::Write(std::string text) try { - /* ServerInstance->Log(DEBUG,"C[%d] <- %s", this->GetFd(), text.c_str()); + /* ServerInstance->Log(DEBUG,"C[%d] O %s", this->GetFd(), text.c_str()); * WARNING: The above debug line is VERY loud, do NOT * enable it till we have a good way of filtering it * out of the logs (e.g. 1.2 would be good). -- cgit v1.2.3