Change logging method 50/199250/1 accepted/tizen/5.0/unified/20190208.061756 submit/tizen_5.0/20190208.002645
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:22:31 +0000 (09:22 +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: I0bdb7043953e8553da409656fa05dab8e483746f
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());
         }
     }
 }