From 4e20fca33fa72095adbe14f56b89c138eeaea12e Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Tue, 10 May 2022 23:35:24 +0800 Subject: [PATCH] log print Signed-off-by: fangJinliang1 Change-Id: I43395cf730ec489d546033b282061c40fe916555 --- frameworks/ans/core/src/ans_manager_proxy.cpp | 2 +- frameworks/ans/core/src/ans_manager_stub.cpp | 1 + interfaces/kits/napi/ans/src/slot.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/ans/core/src/ans_manager_proxy.cpp b/frameworks/ans/core/src/ans_manager_proxy.cpp index 70293f09e..09f611ba4 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 3f1489e8a..17464b5e7 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 71d452ef5..ea8c6e13f 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) { -- Gitee