Add log for getting statistics issue 87/217987/1 submit/tizen_5.5/20191118.102623 submit/tizen_5.5/20191119.081047
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Nov 2019 08:45:46 +0000 (17:45 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Nov 2019 08:48:17 +0000 (17:48 +0900)
It will be removed after resolving the issue.

Change-Id: I61f4aef12a6dc5e1f0de9e4a5aa24c67e4c589dc

src/connection.c

index b90606f89deca41f259363625b0fa0a4776f13ed..3caa3690b21d141ada135e8f2b65b548790d86b8 100755 (executable)
@@ -1545,6 +1545,8 @@ static int __get_statistic(connection_handle_s *conn_handle, connection_type_e c
                return CONNECTION_ERROR_OPERATION_FAILED;
        }
 
+       CONNECTION_LOG(CONNECTION_INFO, "type [%d]", connection_type);
+
        if (connection_type == CONNECTION_TYPE_CELLULAR)
                return __get_cellular_statistic(statistics_type, llsize);
        else if (connection_type == CONNECTION_TYPE_WIFI) {
@@ -1628,6 +1630,8 @@ EXPORT_API int connection_get_statistics(connection_h connection,
 {
        CONN_LOCK;
 
+       CONNECTION_LOG(CONNECTION_INFO, "");
+
        CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE);
 
        if (connection_type == CONNECTION_TYPE_CELLULAR)