From b7b8df1ac2789c1819839950919b6193b310f837 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:31:50 +0000 Subject: [PATCH 01/13] update frameworks/js/napi/connection/connection_exec/src/connection_exec.cpp. Signed-off-by: jxw --- .../js/napi/connection/connection_exec/src/connection_exec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/js/napi/connection/connection_exec/src/connection_exec.cpp b/frameworks/js/napi/connection/connection_exec/src/connection_exec.cpp index fd8955cf0..5de5a9530 100644 --- a/frameworks/js/napi/connection/connection_exec/src/connection_exec.cpp +++ b/frameworks/js/napi/connection/connection_exec/src/connection_exec.cpp @@ -1035,7 +1035,7 @@ bool ConnectionExec::NetInterfaceExec::ExecIfaceUnregister(IfaceUnregisterContex int32_t ret = NetConnClient::GetInstance().UnregisterNetInterfaceCallback(callback); if (ret != NETMANAGER_SUCCESS) { - NETMANAGER_BASE_LOGE("Unregister result %{public}d", ret); + NETMANAGER_BASE_LOGD("Unregister result %{public}d", ret); context->SetErrorCode(ret); } return ret == NETMANAGER_SUCCESS; -- Gitee From 88338b88aff50e1eae60c8e882fe3accddb29105 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:32:43 +0000 Subject: [PATCH 02/13] update frameworks/js/napi/netpolicy/src/network_security_config.cpp. Signed-off-by: jxw --- .../js/napi/netpolicy/src/network_security_config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/js/napi/netpolicy/src/network_security_config.cpp b/frameworks/js/napi/netpolicy/src/network_security_config.cpp index 5d21909fd..f428a87aa 100644 --- a/frameworks/js/napi/netpolicy/src/network_security_config.cpp +++ b/frameworks/js/napi/netpolicy/src/network_security_config.cpp @@ -70,7 +70,7 @@ using GetNetBundleClass = INetBundle *(*)(); NetworkSecurityConfig::NetworkSecurityConfig() { if (GetConfig() != NETMANAGER_SUCCESS) { - NETMGR_LOG_E("GetConfig failed"); + NETMGR_LOG_D("GetConfig failed"); } else { NETMGR_LOG_D("Succeed to get NetworkSecurityConfig"); } @@ -326,7 +326,7 @@ int32_t NetworkSecurityConfig::GetConfig() std::string json; auto ret = GetJsonFromBundle(json); if (ret != NETMANAGER_SUCCESS) { - NETMGR_LOG_E("Get json failed."); + NETMGR_LOG_D("Get json failed."); return ret; } @@ -366,7 +366,7 @@ __attribute__((no_sanitize("cfi"))) std::string NetworkSecurityConfig::GetJsonPr std::string jsonProfile; auto ret = netBundle->GetJsonFromBundle(jsonProfile); if (ret != NETMANAGER_SUCCESS) { - NETMGR_LOG_E("get profile failed"); + NETMGR_LOG_D("get profile failed"); dlclose(handler); return ""; } -- Gitee From 9e8d14937d87388781ce1d94c1c3c3c386c4ac12 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:33:24 +0000 Subject: [PATCH 03/13] update frameworks/native/netmanagernative/netsys_native_service_proxy.cpp. Signed-off-by: jxw --- .../native/netmanagernative/netsys_native_service_proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp b/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp index 54bf7e213..9ca4be1ba 100644 --- a/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp +++ b/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp @@ -1872,7 +1872,7 @@ int32_t NetsysNativeServiceProxy::GetNetworkCellularSharingTraffic(NetworkSharin int32_t ret = reply.ReadInt32(); if (ret != ERR_NONE) { - NETNATIVE_LOGE("Fail to GetNetworkCellularSharingTraffic ret= %{public}d", ret); + NETNATIVE_LOGD("Fail to GetNetworkCellularSharingTraffic ret= %{public}d", ret); return ret; } -- Gitee From 3ad8ba0c39215d43d60024b9a7dbe54352643928 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:34:51 +0000 Subject: [PATCH 04/13] update frameworks/js/napi/netpolicy/src/net_conn_service.cpp. Signed-off-by: jxw --- frameworks/js/napi/netpolicy/src/net_conn_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/js/napi/netpolicy/src/net_conn_service.cpp b/frameworks/js/napi/netpolicy/src/net_conn_service.cpp index 41ea8f597..0b165e4a5 100644 --- a/frameworks/js/napi/netpolicy/src/net_conn_service.cpp +++ b/frameworks/js/napi/netpolicy/src/net_conn_service.cpp @@ -825,7 +825,7 @@ int32_t NetConnService::UnregisterNetConnCallbackAsync(const sptr Date: Thu, 7 Aug 2025 03:36:22 +0000 Subject: [PATCH 05/13] update services/netconnmanager/src/stub/net_conn_callback_proxy.cpp. Signed-off-by: jxw --- .../src/stub/net_conn_callback_proxy.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/services/netconnmanager/src/stub/net_conn_callback_proxy.cpp b/services/netconnmanager/src/stub/net_conn_callback_proxy.cpp index 020b62932..99a64fca3 100644 --- a/services/netconnmanager/src/stub/net_conn_callback_proxy.cpp +++ b/services/netconnmanager/src/stub/net_conn_callback_proxy.cpp @@ -54,7 +54,7 @@ int32_t NetConnCallbackProxy::NetAvailable(sptr &netHandle) int32_t ret = remote->SendRequest(static_cast(ConnCallbackInterfaceCode::NET_AVAILABLE), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } @@ -107,7 +107,7 @@ int32_t NetConnCallbackProxy::NetCapabilitiesChange( int32_t ret = remote->SendRequest(static_cast(ConnCallbackInterfaceCode::NET_CAPABILITIES_CHANGE), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } @@ -147,7 +147,7 @@ int32_t NetConnCallbackProxy::NetConnectionPropertiesChange(sptr &net remote->SendRequest(static_cast(ConnCallbackInterfaceCode::NET_CONNECTION_PROPERTIES_CHANGE), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } @@ -181,7 +181,7 @@ int32_t NetConnCallbackProxy::NetLost(sptr &netHandle) int32_t ret = remote->SendRequest(static_cast(ConnCallbackInterfaceCode::NET_LOST), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } @@ -206,7 +206,7 @@ int32_t NetConnCallbackProxy::NetUnavailable() int32_t ret = remote->SendRequest(static_cast(ConnCallbackInterfaceCode::NET_UNAVAILABLE), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } @@ -242,7 +242,7 @@ int32_t NetConnCallbackProxy::NetBlockStatusChange(sptr &netHandle, b int32_t ret = remote->SendRequest(static_cast(ConnCallbackInterfaceCode::NET_BLOCK_STATUS_CHANGE), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } @@ -281,7 +281,7 @@ int32_t PreAirplaneCallbackProxy::PreAirplaneStart() int32_t ret = remote->SendRequest(static_cast(PreAirplaneCallbackInterfaceCode::PRE_AIRPLANE_START), data, reply, option); if (ret != ERR_NONE) { - NETMGR_LOG_E("Proxy SendRequest failed, ret code:[%{public}d]", ret); + NETMGR_LOG_D("Proxy SendRequest failed, ret code:[%{public}d]", ret); } return ret; } -- Gitee From 34775e34f72851f8ca691cc3f41b164bffb7d062 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:37:45 +0000 Subject: [PATCH 06/13] update services/netmanagernative/src/manager/sharing_manager.cpp. Signed-off-by: jxw --- services/netmanagernative/src/manager/sharing_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/netmanagernative/src/manager/sharing_manager.cpp b/services/netmanagernative/src/manager/sharing_manager.cpp index 015940e24..cc242b9e0 100644 --- a/services/netmanagernative/src/manager/sharing_manager.cpp +++ b/services/netmanagernative/src/manager/sharing_manager.cpp @@ -439,7 +439,7 @@ int32_t SharingManager::GetNetworkCellularSharingTraffic(NetworkSharingTraffic & std::string result = iptablesWrapper_->RunCommandForRes(ipType, cmds); int32_t ret = QueryCellularSharingTraffic(traffic0, result, ifaceName0); if (ret != NETMANAGER_SUCCESS) { - NETNATIVE_LOGE("ipv4 GetNetworkSharingTraffic failed"); + NETNATIVE_LOGI("ipv4 GetNetworkSharingTraffic failed"); return NETMANAGER_ERROR; } traffic.receive += traffic0.receive; @@ -476,7 +476,7 @@ int32_t SharingManager::QueryCellularSharingTraffic(NetworkSharingTraffic &traff return NETMANAGER_SUCCESS; } } - NETNATIVE_LOGE("GetNetworkSharingTraffic failed"); + NETNATIVE_LOGI("GetNetworkSharingTraffic failed"); return NETMANAGER_ERROR; } -- Gitee From 3bc92b5764d3d52262b8336ca5236c3f42109446 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:38:31 +0000 Subject: [PATCH 07/13] update services/netpolicymanager/src/net_access_policy_database.cpp. Signed-off-by: jxw --- services/netpolicymanager/src/net_access_policy_database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/netpolicymanager/src/net_access_policy_database.cpp b/services/netpolicymanager/src/net_access_policy_database.cpp index c1a5b49f0..c9db090c3 100644 --- a/services/netpolicymanager/src/net_access_policy_database.cpp +++ b/services/netpolicymanager/src/net_access_policy_database.cpp @@ -391,7 +391,7 @@ int32_t NetAccessPolicyRDB::QueryByUid(int uid, NetAccessPolicyData& uidPolicy) return ret; } if (rowCount == 0) { - NETMGR_LOG_D("query setting name:%{public}d, num is 0", uid); + NETMGR_LOG_I("query setting name:%{public}d, num is 0", uid); queryResultSet->Close(); return NETMANAGER_ERROR; } -- Gitee From e64068ed6632c656329872694f5c00132cc32f00 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:38:57 +0000 Subject: [PATCH 08/13] update frameworks/js/napi/netstats/src/net_stats_cached.cpp. Signed-off-by: jxw --- frameworks/js/napi/netstats/src/net_stats_cached.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/js/napi/netstats/src/net_stats_cached.cpp b/frameworks/js/napi/netstats/src/net_stats_cached.cpp index b9900a1fb..744f9d01a 100644 --- a/frameworks/js/napi/netstats/src/net_stats_cached.cpp +++ b/frameworks/js/napi/netstats/src/net_stats_cached.cpp @@ -876,7 +876,7 @@ void NetStatsCached::CacheIptablesStats() int32_t ret = NetsysController::GetInstance().GetNetworkCellularSharingTraffic(traffic, ifaceName); if (ret != NETMANAGER_SUCCESS) { - NETMGR_LOG_E("GetTrafficBytes err, ret[%{public}d]", ret); + NETMGR_LOG_I("GetTrafficBytes err, ret[%{public}d]", ret); return; } CacheIptablesStatsService(traffic, ifaceName); -- Gitee From 8aacfc07a2a18b29e47780ce0e0f7901833a9bcf Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:39:22 +0000 Subject: [PATCH 09/13] update services/netstatsmanager/src/net_stats_data_handler.cpp. Signed-off-by: jxw --- services/netstatsmanager/src/net_stats_data_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/netstatsmanager/src/net_stats_data_handler.cpp b/services/netstatsmanager/src/net_stats_data_handler.cpp index ff3f46bcb..c002c8f3a 100644 --- a/services/netstatsmanager/src/net_stats_data_handler.cpp +++ b/services/netstatsmanager/src/net_stats_data_handler.cpp @@ -216,7 +216,7 @@ int32_t NetStatsDataHandler::WriteStatsData(const std::vector &inf { NETMGR_LOG_I("WriteStatsData enter tableName:%{public}s", tableName.c_str()); if (infos.empty() || tableName.empty()) { - NETMGR_LOG_E("Param wrong, info: %{public}zu, tableName: %{public}zu", infos.size(), tableName.size()); + NETMGR_LOG_I("Param wrong, info: %{public}zu, tableName: %{public}zu", infos.size(), tableName.size()); return NETMANAGER_ERR_PARAMETER_ERROR; } auto helper = std::make_unique(NET_STATS_DATABASE_PATH); -- Gitee From ad8e82f4d1df55cfc15560e6328d927ae34fa6c5 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:39:55 +0000 Subject: [PATCH 10/13] update utils/bundle_utils/src/net_bundle_impl.cpp. Signed-off-by: jxw --- utils/bundle_utils/src/net_bundle_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/bundle_utils/src/net_bundle_impl.cpp b/utils/bundle_utils/src/net_bundle_impl.cpp index de4a29355..ae2643168 100644 --- a/utils/bundle_utils/src/net_bundle_impl.cpp +++ b/utils/bundle_utils/src/net_bundle_impl.cpp @@ -50,7 +50,7 @@ int32_t NetBundleImpl::GetJsonFromBundle(std::string &jsonProfile) AppExecFwk::BundleInfo bundleInfo; auto ret = bundleMgrProxy->GetBundleInfoForSelf(0, bundleInfo); if (ret != ERR_OK) { - NETMGR_LOG_E("GetSelfBundleName: bundleName get fail."); + NETMGR_LOG_I("GetSelfBundleName: bundleName get fail."); return NETMANAGER_ERR_INTERNAL; } ret = bundleMgrProxy->GetJsonProfile(AppExecFwk::ProfileType::NETWORK_PROFILE, -- Gitee From 4d617236c04cedf693889579efb8e23704d0e8c3 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:42:47 +0000 Subject: [PATCH 11/13] update frameworks/js/napi/netpolicy/src/network_security_config.cpp. Signed-off-by: jxw --- frameworks/js/napi/netpolicy/src/network_security_config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/js/napi/netpolicy/src/network_security_config.cpp b/frameworks/js/napi/netpolicy/src/network_security_config.cpp index f428a87aa..43c9e7fd6 100644 --- a/frameworks/js/napi/netpolicy/src/network_security_config.cpp +++ b/frameworks/js/napi/netpolicy/src/network_security_config.cpp @@ -70,7 +70,7 @@ using GetNetBundleClass = INetBundle *(*)(); NetworkSecurityConfig::NetworkSecurityConfig() { if (GetConfig() != NETMANAGER_SUCCESS) { - NETMGR_LOG_D("GetConfig failed"); + NETMGR_LOG_I("GetConfig failed"); } else { NETMGR_LOG_D("Succeed to get NetworkSecurityConfig"); } @@ -326,7 +326,7 @@ int32_t NetworkSecurityConfig::GetConfig() std::string json; auto ret = GetJsonFromBundle(json); if (ret != NETMANAGER_SUCCESS) { - NETMGR_LOG_D("Get json failed."); + NETMGR_LOG_I("Get json failed."); return ret; } -- Gitee From 2b3bcbd666342cd0d1d06510f63aa5e691699871 Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:43:22 +0000 Subject: [PATCH 12/13] update frameworks/js/napi/netpolicy/src/network_security_config.cpp. Signed-off-by: jxw --- frameworks/js/napi/netpolicy/src/network_security_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/js/napi/netpolicy/src/network_security_config.cpp b/frameworks/js/napi/netpolicy/src/network_security_config.cpp index 43c9e7fd6..4022aba14 100644 --- a/frameworks/js/napi/netpolicy/src/network_security_config.cpp +++ b/frameworks/js/napi/netpolicy/src/network_security_config.cpp @@ -366,7 +366,7 @@ __attribute__((no_sanitize("cfi"))) std::string NetworkSecurityConfig::GetJsonPr std::string jsonProfile; auto ret = netBundle->GetJsonFromBundle(jsonProfile); if (ret != NETMANAGER_SUCCESS) { - NETMGR_LOG_D("get profile failed"); + NETMGR_LOG_I("get profile failed"); dlclose(handler); return ""; } -- Gitee From b09557a3cdd5eb126aabb1695971e1bf266788ea Mon Sep 17 00:00:00 2001 From: jxw Date: Thu, 7 Aug 2025 03:44:31 +0000 Subject: [PATCH 13/13] update frameworks/native/netmanagernative/netsys_native_service_proxy.cpp. Signed-off-by: jxw --- .../native/netmanagernative/netsys_native_service_proxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp b/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp index 9ca4be1ba..a19a2a509 100644 --- a/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp +++ b/frameworks/native/netmanagernative/netsys_native_service_proxy.cpp @@ -1872,7 +1872,7 @@ int32_t NetsysNativeServiceProxy::GetNetworkCellularSharingTraffic(NetworkSharin int32_t ret = reply.ReadInt32(); if (ret != ERR_NONE) { - NETNATIVE_LOGD("Fail to GetNetworkCellularSharingTraffic ret= %{public}d", ret); + NETNATIVE_LOGI("Fail to GetNetworkCellularSharingTraffic ret= %{public}d", ret); return ret; } -- Gitee