From 053b8b21e2591be2fea28975d9139e916dd77f6d Mon Sep 17 00:00:00 2001 From: xdongs Date: Thu, 24 Apr 2025 10:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=80=9A=E7=9F=A5=E7=BB=B4?= =?UTF-8?q?=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xdongs --- frameworks/core/src/ans_notification.cpp | 4 ++-- services/ans/src/advanced_notification_publish_service.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/core/src/ans_notification.cpp b/frameworks/core/src/ans_notification.cpp index fe8c68fbc..10024f682 100644 --- a/frameworks/core/src/ans_notification.cpp +++ b/frameworks/core/src/ans_notification.cpp @@ -852,8 +852,8 @@ ErrCode AnsNotification::RemoveNotification(const std::string &key, int32_t remo ErrCode AnsNotification::RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificationId, const std::string &label, int32_t removeReason) { - ANS_LOGI("enter RemoveNotification,bundle:%{public}s,Id:%{public}d,reason:%{public}d", - bundleOption.GetBundleName().c_str(), notificationId, removeReason); + ANS_LOGI("enter RemoveNotification,bundle:%{public}s,Id:%{public}d,reason:%{public}d label:%{public}s", + bundleOption.GetBundleName().c_str(), notificationId, removeReason, label.c_str()); HITRACE_METER_NAME(HITRACE_TAG_NOTIFICATION, __PRETTY_FUNCTION__); if (bundleOption.GetBundleName().empty()) { ANS_LOGE("Invalid bundle name."); diff --git a/services/ans/src/advanced_notification_publish_service.cpp b/services/ans/src/advanced_notification_publish_service.cpp index 944754eeb..63624547c 100644 --- a/services/ans/src/advanced_notification_publish_service.cpp +++ b/services/ans/src/advanced_notification_publish_service.cpp @@ -1831,7 +1831,7 @@ ErrCode AdvancedNotificationService::RemoveNotification(const sptrwait(handler); if (result != ERR_OK) { std::string message = "remove notificaiton error"; - ANS_LOGE("%{public}s", message.c_str()); + ANS_LOGE("%{public}s %{public}d", message.c_str(), result); } SendRemoveHiSysEvent(notificationId, label, bundleOption, result); return result; -- Gitee