Change logging method 51/199251/1 accepted/tizen/unified/20190208.061658 submit/tizen/20190208.002622
authoragrkush <kush.agrawal@samsung.com>
Thu, 7 Feb 2019 12:42:40 +0000 (18:12 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 8 Feb 2019 00:23:44 +0000 (09:23 +0900)
There is a crash reported in InProcServer
destructor when oclog() is called.
So replacing it with OIC_LOG_V

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/411
(cherry picked from 206d2d7556e6c2bc258ec4623fad7d221d23862e)

Change-Id: I133383484e8a673f2d05f297fd1a3da90b2104f7
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/src/InProcServerWrapper.cpp

index 5989cf5..6bc0bae 100644 (file)
@@ -770,7 +770,7 @@ namespace OC
         }
         catch (InitializeException &e)
         {
-            oclog() << "Exception in stop"<< e.what() << std::flush;
+            OIC_LOG_V(INFO, TAG, "Exception in stop (%s)", e.what());
         }
     }
 }