Author: derek Date: Tue Feb 13 19:20:25 2007 New Revision: 241 Modified: sofaswitch/trunk/server/main.cxx Log: Improve reporting, so it is clear what messages are receveived, and what messages are sent from the server. Modified: sofaswitch/trunk/server/main.cxx ============================================================================== --- sofaswitch/trunk/server/main.cxx (original) +++ sofaswitch/trunk/server/main.cxx Tue Feb 13 19:20:25 2007 @@ -575,7 +575,7 @@ if (reportReadMessages) { PStringStream msg; msg << GetNow() - << " New node of " + << " Recv New node of " << sourceId << endl; PWaitAndSignal m(outputMutex); cerr << msg; @@ -693,7 +693,7 @@ PStringStream msg; msg << GetNow() - << " " <<sourceId << ::setw(25) << " " + << " Recv " <<sourceId << ::setw(25) << " " << ::setw(0) << txt << endl; PWaitAndSignal m(outputMutex); cerr << msg; @@ -832,8 +832,8 @@ IncCountSent(); if (reportSentMessages) { PStringStream msg; - msg << GetNow() << ::setw(18) - << " " << sourceId << ::setw(0) << " --> " + msg << GetNow() << " Send " + << ::setw(18) << sourceId << ::setw(0) << " --> " << PString((const char *)message.GetPointer(), message.GetSize() - 1) << endl; PWaitAndSignal m(outputMutex);