Add a log message for GError
authorSunwook Bae <sunwook45.bae@samsung.com>
Wed, 12 Jun 2013 07:27:35 +0000 (16:27 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Wed, 12 Jun 2013 07:27:45 +0000 (16:27 +0900)
Change-Id: I5ae6431e3ba207bc435fc8104c0821dc47902007
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/server/io/FIo_IpcServer.cpp

index 6b5f53c..f865270 100644 (file)
@@ -728,7 +728,13 @@ _IpcServer::SendResponse(int client, IPC::Message* pMessage)
                {
                        SysTryCatch(NID_IO, ret != G_IO_STATUS_AGAIN, , E_RESOURCE_UNAVAILABLE, "[E_RESOURCE_UNAVAILABLE] The socket buffer is full.");
 
-                       SysLogException(NID_IO, E_SYSTEM, "[E_SYSTEM] Failed to send a request: %d, %s", errno, strerror(errno));
+                       SysLogException(NID_IO, E_SYSTEM, "[E_SYSTEM] Failed to send a response: %d", ret);
+
+                       if (pGError)
+                       {
+                               SysLog(NID_IO, "GError is %s", pGError->message);
+                       }
+
                        delete pMessage;
                        return E_SYSTEM;
                }
@@ -778,7 +784,13 @@ _IpcServer::SendResponse(int client, const IPC::Message& message)
                {
                        SysTryCatch(NID_IO, ret != G_IO_STATUS_AGAIN, , E_RESOURCE_UNAVAILABLE, "[E_RESOURCE_UNAVAILABLE] The socket buffer is full.");
 
-                       SysLogException(NID_IO, E_SYSTEM, "[E_SYSTEM] Failed to send a request: %d, %s", errno, strerror(errno));
+                       SysLogException(NID_IO, E_SYSTEM, "[E_SYSTEM] Failed to send a response: %d", ret);
+
+                       if (pGError)
+                       {
+                               SysLog(NID_IO, "GError is %s", pGError->message);
+                       }
+
                        return E_SYSTEM;
                }