From 55b4cb165c6a9c42cae49dcd1cd336332f0dfdb7 Mon Sep 17 00:00:00 2001 From: Hyunjin Park Date: Wed, 22 Jun 2016 16:55:07 +0900 Subject: [PATCH] [HAM] add detailed log Change-Id: I61f0364529dd0ab1c00966db9827bbe3c5fb2557 --- src/humanactivitymonitor/humanactivitymonitor_manager.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/humanactivitymonitor/humanactivitymonitor_manager.cc b/src/humanactivitymonitor/humanactivitymonitor_manager.cc index 6f145c0..003951a 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, -- 2.7.4