diff --git a/frameworks/core/src/ans_notification.cpp b/frameworks/core/src/ans_notification.cpp index fe8c68fbc7478edece8083bfbb3e261ed14cc4c7..10024f68205b82b6d8504fef932847dea39d7765 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 944754eebd16ebcd93708d5e836703f87bf35782..63624547c504c6fd6cd42c548e352cb6529da5f3 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;