From: agrkush Date: Thu, 7 Feb 2019 12:42:40 +0000 (+0530) Subject: Change logging method X-Git-Tag: submit/tizen_5.0/20190208.002645 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_5.0%2F20190208.002645;p=platform%2Fupstream%2Fiotivity.git Change logging method 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 Signed-off-by: DoHyun Pyun --- diff --git a/resource/src/InProcServerWrapper.cpp b/resource/src/InProcServerWrapper.cpp index 5989cf5..6bc0bae 100644 --- a/resource/src/InProcServerWrapper.cpp +++ b/resource/src/InProcServerWrapper.cpp @@ -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()); } } }