// Retrieve socket sender
SocketType *socket = static_cast<SocketType *>(event.GetSender());
- LogPedantic("Connection with RPC server established");
+ WrtLogD("Connection with RPC server established");
// Is this connection still tracked ?
// It might have disappeared on close
m_internalConnectionSet.find(socket);
if (iterator == m_internalConnectionSet.end()) {
- LogPedantic("RPC client connection socket disappeared");
+ WrtLogD("RPC client connection socket disappeared");
return;
}
AbstractRPCConnectionID Open(const Address &socketAddress)
{
- LogPedantic("Starting client: " << socketAddress.ToString());
+ WrtLogD("Starting client: %s", socketAddress.ToString().c_str());
// Alloc new socket
SocketType *socket = new SocketType();
ConnectedEvent>::RemoveListener(this);
// Log debug message
- LogPedantic("Cannot connect to: " << socketAddress.ToString());
+ WrtLogD("Cannot connect to: %s", socketAddress.ToString().c_str());
// Problem with client startup
ReThrowMsg(typename Exception::OpenFailed, socketAddress.ToString());
m_internalConnectionSet.insert(socket);
// Debug info
- LogPedantic(
- "Client started on interface: " <<
- socket->GetLocalAddress().ToString());
+ WrtLogD(
+ "Client started on interface: %s",
+ socket->GetLocalAddress().ToString().c_str());
// Return unique identifier
return static_cast<AbstractRPCConnectionID>(socket);
void Close(AbstractRPCConnectionID connectionID)
{
- LogPedantic("Closing client interface...");
+ WrtLogD("Closing client interface...");
// Get socket from ID
SocketType *socket = static_cast<SocketType *>(connectionID);
m_internalConnectionSet.erase(iterator);
// Done
- LogPedantic("Closed");
+ WrtLogD("Closed");
}
void CloseAll()