X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=modules%2Frpc%2Finclude%2Fdpl%2Frpc%2Fgeneric_socket_rpc_client.h;fp=modules_mobile%2Frpc%2Finclude%2Fdpl%2Frpc%2Fgeneric_socket_rpc_client.h;h=2749a1739c6551f5b4d543b82244076e134f53a6;hb=3a034abb4dca58ff0940687d8dd2b829ce2e226f;hp=9629e61f3984a4a4d2599b3a974a1454cab584a1;hpb=58be0971049907f3166ce56a6ad509769565158f;p=framework%2Fweb%2Fwrt-commons.git diff --git a/modules_mobile/rpc/include/dpl/rpc/generic_socket_rpc_client.h b/modules/rpc/include/dpl/rpc/generic_socket_rpc_client.h similarity index 91% rename from modules_mobile/rpc/include/dpl/rpc/generic_socket_rpc_client.h rename to modules/rpc/include/dpl/rpc/generic_socket_rpc_client.h index 9629e61..2749a17 100644 --- a/modules_mobile/rpc/include/dpl/rpc/generic_socket_rpc_client.h +++ b/modules/rpc/include/dpl/rpc/generic_socket_rpc_client.h @@ -58,7 +58,7 @@ class GenericSocketRPCClient : // Retrieve socket sender SocketType *socket = static_cast(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 @@ -66,7 +66,7 @@ class GenericSocketRPCClient : m_internalConnectionSet.find(socket); if (iterator == m_internalConnectionSet.end()) { - LogPedantic("RPC client connection socket disappeared"); + WrtLogD("RPC client connection socket disappeared"); return; } @@ -102,7 +102,7 @@ class GenericSocketRPCClient : 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(); @@ -126,7 +126,7 @@ class GenericSocketRPCClient : 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()); @@ -136,9 +136,9 @@ class GenericSocketRPCClient : 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(socket); @@ -146,7 +146,7 @@ class GenericSocketRPCClient : void Close(AbstractRPCConnectionID connectionID) { - LogPedantic("Closing client interface..."); + WrtLogD("Closing client interface..."); // Get socket from ID SocketType *socket = static_cast(connectionID); @@ -170,7 +170,7 @@ class GenericSocketRPCClient : m_internalConnectionSet.erase(iterator); // Done - LogPedantic("Closed"); + WrtLogD("Closed"); } void CloseAll()