From 91eebe370cfde1b3f904b29bd9ea12bc2d18527f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 17 May 2007 16:54:33 +0000 Subject: Change the way i/o lines are formatted in debug log to make them more intuitive. Now includes a C or S to say if its client or server, plus the fd: Thu May 17 17:56:16 2007: C[15] -> :Brain MODE #test Thu May 17 17:56:17 2007: C[15] -> :Brain WHO #test git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7039 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index b8134f31c..d8b495b49 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -38,7 +38,7 @@ static std::map warned; /* Server names that hav int TreeSocket::WriteLine(std::string line) { - Instance->Log(DEBUG, "-> %s", line.c_str()); + Instance->Log(DEBUG, "S[%d] -> %s", this->GetFd(), line.c_str()); line.append("\r\n"); return this->Write(line); } @@ -985,7 +985,7 @@ bool TreeSocket::ProcessLine(std::string &line) if (line.empty()) return true; - Instance->Log(DEBUG, "<- %s", line.c_str()); + Instance->Log(DEBUG, "S[%d] <- %s", this->GetFd(), line.c_str()); this->Split(line.c_str(),params); -- cgit v1.2.3