diff --git a/frameworks/ans/core/src/ans_manager_proxy.cpp b/frameworks/ans/core/src/ans_manager_proxy.cpp index 70293f09e2b74945c96c5b1c59578287c9a74f1b..09f611ba4ffc3640066e1505d96251531f3538bf 100644 --- a/frameworks/ans/core/src/ans_manager_proxy.cpp +++ b/frameworks/ans/core/src/ans_manager_proxy.cpp @@ -2746,7 +2746,7 @@ ErrCode AnsManagerProxy::GetEnabledForBundleSlot( ANS_LOGW("[GetEnabledForBundleSlot] fail: read canPublish failed."); return ERR_ANS_PARCELABLE_FAILED; } - + ANS_LOGD("slotType enable: %{public}d", enabled); return result; } } // namespace Notification diff --git a/frameworks/ans/core/src/ans_manager_stub.cpp b/frameworks/ans/core/src/ans_manager_stub.cpp index 3f1489e8a0d2ebea3439f33f5a7f519eaee29bdb..17464b5e7245a603fb12c884b6707ee24c513a71 100644 --- a/frameworks/ans/core/src/ans_manager_stub.cpp +++ b/frameworks/ans/core/src/ans_manager_stub.cpp @@ -1802,6 +1802,7 @@ ErrCode AnsManagerStub::HandleGetEnabledForBundleSlot(MessageParcel &data, Messa return ERR_ANS_PARCELABLE_FAILED; } + ANS_LOGD("slotType enable: %{public}d", enabled); if (!reply.WriteBool(enabled)) { ANS_LOGW("[HandleGetEnabledForBundleSlot] fail: write enabled failed, ErrCode=%{public}d", result); return ERR_ANS_PARCELABLE_FAILED; diff --git a/interfaces/kits/napi/ans/src/slot.cpp b/interfaces/kits/napi/ans/src/slot.cpp index 71d452ef5a1b7d42b893e6d047cd842163ac4e01..ea8c6e13fd3d30f1d13e1678f0017424b2885363 100644 --- a/interfaces/kits/napi/ans/src/slot.cpp +++ b/interfaces/kits/napi/ans/src/slot.cpp @@ -1186,6 +1186,7 @@ napi_value IsEnableNotificationSlot(napi_env env, napi_callback_info info) auto asynccallbackinfo = static_cast(data); if (asynccallbackinfo) { napi_value result = nullptr; + ANS_LOGD("slotType enable: %{public}d", asynccallbackinfo->isEnable); napi_get_boolean(env, asynccallbackinfo->isEnable, &result); Common::ReturnCallbackPromise(env, asynccallbackinfo->info, result); if (asynccallbackinfo->info.callback != nullptr) {