From: Hyunjin Park Date: Wed, 22 Jun 2016 07:55:07 +0000 (+0900) Subject: [HAM] add detailed log X-Git-Tag: submit/tizen/20160622.091814~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F75950%2F2;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [HAM] add detailed log Change-Id: I61f0364529dd0ab1c00966db9827bbe3c5fb2557 --- diff --git a/src/humanactivitymonitor/humanactivitymonitor_manager.cc b/src/humanactivitymonitor/humanactivitymonitor_manager.cc index 6f145c0f..003951a3 100755 --- a/src/humanactivitymonitor/humanactivitymonitor_manager.cc +++ b/src/humanactivitymonitor/humanactivitymonitor_manager.cc @@ -236,17 +236,17 @@ class HumanActivityMonitorManager::Monitor { virtual PlatformResult SetListenerImpl(const picojson::value& args) { ScopeLogger(type()); - return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR); + return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR,"NOT_SUPPORTED_ERR"); } virtual PlatformResult UnsetListenerImpl() { ScopeLogger(type()); - return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR); + return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR,"NOT_SUPPORTED_ERR"); } virtual PlatformResult GetDataImpl(picojson::value* data) const { ScopeLogger(type()); - return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR); + return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR,"NOT_SUPPORTED_ERR"); } private: @@ -266,7 +266,7 @@ class HumanActivityMonitorManager::Monitor { if (*is_supported_) { return PlatformResult(ErrorCode::NO_ERROR); } else { - return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR); + return LogAndCreateResult(ErrorCode::NOT_SUPPORTED_ERR,"NOT_SUPPORTED_ERR"); } } @@ -495,7 +495,7 @@ class HumanActivityMonitorManager::Monitor::SensorMonitor : public HumanActivity ScopeLogger(type()); if (!handle_) { - return LogAndCreateResult(ErrorCode::SERVICE_NOT_AVAILABLE_ERR); + return LogAndCreateResult(ErrorCode::SERVICE_NOT_AVAILABLE_ERR,"SERVICE_NOT_AVAILABLE_ERR"); } sensor_event_s event = {0}; @@ -664,7 +664,7 @@ class HumanActivityMonitorManager::Monitor::GpsMonitor : public HumanActivityMon ScopeLogger(type()); if (!handle_) { - return LogAndCreateResult(ErrorCode::SERVICE_NOT_AVAILABLE_ERR); + return LogAndCreateResult(ErrorCode::SERVICE_NOT_AVAILABLE_ERR,"SERVICE_NOT_AVAILABLE_ERR"); } double altitude = 0.0, latitude = 0.0, longitude = 0.0, climb = 0.0,