[Sofaswitch-svn] [commit] r251 - sofaswitch/trunk/sofa/src
Author: derek Date: Mon May 14 23:03:54 2007 New Revision: 251 Modified: sofaswitch/trunk/sofa/src/messages.cxx Log: Tidy up reporting. Modified: sofaswitch/trunk/sofa/src/messages.cxx ============================================================================== --- sofaswitch/trunk/sofa/src/messages.cxx (original) +++ sofaswitch/trunk/sofa/src/messages.cxx Mon May 14 23:03:54 2007 @@ -23,7 +23,9 @@ * */ +#ifndef _PTLIB_H #include <ptlib.h> +#endif #include <ptclib/random.h> #ifdef __GNUC__ @@ -200,12 +202,13 @@ SetThreadName(PString("Messages.") + ourId); PTRACE(3, "Message frame Initialise begin"); messagesSocket.SetPort(5000); - PTRACE(3, "Message frame connect to port 5000 of server"); + PTRACE(3, "Message frame connect to port 5000 of server \"" + << remoteServer << "\""); for(PINDEX tryCount = 0; keepGoing && (tryCount < 5); tryCount++) { if (!messagesSocket.Connect(remoteServer)) { - PTRACE(3, "Failed to connect to " << remoteServer << " error was " - << messagesSocket.GetErrorText()); + PTRACE(3, "Failed to connect to \"" << remoteServer << "\" error was \"" + << messagesSocket.GetErrorText() << "\""); } PTRACE(3, "finish a try to connect");
participants (1)
-
SofaSWITCH SVN