From: agrkush Date: Thu, 7 Feb 2019 12:42:40 +0000 (+0530) Subject: Change logging method X-Git-Tag: submit/tizen/20190208.002622 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen%2F20190208.002622;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: I133383484e8a673f2d05f297fd1a3da90b2104f7 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()); } } }