From 5e1ca483ff76bd3c2b65cf189a824a95ce2eac38 Mon Sep 17 00:00:00 2001 From: liwang <965027894@qq.com> Date: Fri, 29 Aug 2025 15:07:16 +0800 Subject: [PATCH] =?UTF-8?q?ani=5Fremove.cpp=E6=96=87=E4=BB=B6=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liwang <965027894@qq.com> --- frameworks/ets/ani/src/subscribe/ani_remove.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/ets/ani/src/subscribe/ani_remove.cpp b/frameworks/ets/ani/src/subscribe/ani_remove.cpp index 65969c0aa..ff04d7a09 100644 --- a/frameworks/ets/ani/src/subscribe/ani_remove.cpp +++ b/frameworks/ets/ani/src/subscribe/ani_remove.cpp @@ -59,7 +59,7 @@ void AniRemoveForBundle(ani_env *env, ani_object bundle, ani_object notification int ret = NotificationHelper::RemoveNotification(option, key.id, key.label, reasonType); if (ret != ERR_OK) { int32_t externalErrorCode = NotificationSts::GetExternalCode(ret); - ANS_LOGD("StsRemoveForBundle ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); + ANS_LOGE("StsRemoveForBundle ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); std::string msg = OHOS::NotificationSts::FindAnsErrMsg(externalErrorCode); OHOS::NotificationSts::ThrowError(env, externalErrorCode, msg); } @@ -93,7 +93,7 @@ void AniRemoveForHashCode(ani_env *env, ani_string hashCode, ani_object reasonEn int ret = NotificationHelper::RemoveNotification(hashCodeStd, reasonType); if (ret != ERR_OK) { int32_t externalErrorCode = NotificationSts::GetExternalCode(ret); - ANS_LOGD("StsRemoveForHashCode ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); + ANS_LOGE("StsRemoveForHashCode ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); std::string msg = OHOS::NotificationSts::FindAnsErrMsg(externalErrorCode); OHOS::NotificationSts::ThrowError(env, externalErrorCode, msg); } @@ -129,7 +129,7 @@ void AniRemoveForHashCodes(ani_env *env, ani_object hashCodes, ani_object reason int ret = NotificationHelper::RemoveNotifications(hashCodesStd, reasonType); if (ret != ERR_OK) { int32_t externalErrorCode = NotificationSts::GetExternalCode(ret); - ANS_LOGD("StsRemoveForHashCodes ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); + ANS_LOGE("StsRemoveForHashCodes ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); std::string msg = OHOS::NotificationSts::FindAnsErrMsg(externalErrorCode); OHOS::NotificationSts::ThrowError(env, externalErrorCode, msg); } @@ -141,7 +141,7 @@ void AniRemoveAll(ani_env *env) int ret = NotificationHelper::RemoveNotifications(); if (ret != ERR_OK) { int32_t externalErrorCode = NotificationSts::GetExternalCode(ret); - ANS_LOGD("AniRemoveAll ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); + ANS_LOGE("AniRemoveAll ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); std::string msg = OHOS::NotificationSts::FindAnsErrMsg(externalErrorCode); OHOS::NotificationSts::ThrowError(env, externalErrorCode, msg); } @@ -160,7 +160,7 @@ void AniRemoveAllForBundle(ani_env *env, ani_object bundle) int ret = NotificationHelper::RemoveAllNotifications(option); if (ret != ERR_OK) { int32_t externalErrorCode = NotificationSts::GetExternalCode(ret); - ANS_LOGD("StsRemoveForBundle ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); + ANS_LOGE("StsRemoveForBundle ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); std::string msg = OHOS::NotificationSts::FindAnsErrMsg(externalErrorCode); OHOS::NotificationSts::ThrowError(env, externalErrorCode, msg); } @@ -172,7 +172,7 @@ void AniRemoveAllForUserId(ani_env *env, ani_int userId) int ret = NotificationHelper::RemoveNotifications(userId); if (ret != ERR_OK) { int32_t externalErrorCode = NotificationSts::GetExternalCode(ret); - ANS_LOGD("StsRemoveForBundle ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); + ANS_LOGE("StsRemoveForBundle ret %{public}d. ErrorToExternal %{public}d", ret, externalErrorCode); std::string msg = OHOS::NotificationSts::FindAnsErrMsg(externalErrorCode); OHOS::NotificationSts::ThrowError(env, externalErrorCode, msg); } -- Gitee