diff --git a/frameworks/ans/src/notification_request.cpp b/frameworks/ans/src/notification_request.cpp index a7b01c4c999376703b435dc33949777c4240ebc3..6f939502e3a8d7e2fce48c0cac61282debfdc1ce 100644 --- a/frameworks/ans/src/notification_request.cpp +++ b/frameworks/ans/src/notification_request.cpp @@ -236,7 +236,7 @@ void NotificationRequest::SetIsAgentNotification(bool isAgent) void NotificationRequest::AddMessageUser(const std::shared_ptr &messageUser) { if (!messageUser) { - ANS_LOGI("messageUser can not be null"); + ANS_LOGW("messageUser can not be null"); return; } @@ -364,20 +364,20 @@ bool NotificationRequest::IsColorEnabled() const // no valid content if (!notificationContent_) { - ANS_LOGI("no valid notification content"); + ANS_LOGW("no valid notification content"); return false; } // not a media content if (NotificationContent::Type::MEDIA != notificationContentType_) { - ANS_LOGI("not a media notification content"); + ANS_LOGW("not a media notification content"); return false; } auto basicContent = notificationContent_->GetNotificationContent(); auto mediaContent = std::static_pointer_cast(basicContent); if (!mediaContent->GetAVToken()) { - ANS_LOGI("AVToken has not been attached"); + ANS_LOGW("AVToken has not been attached"); return false; } diff --git a/frameworks/core/src/ans_notification.cpp b/frameworks/core/src/ans_notification.cpp index d48a2998f69a0d850d689bfbf667acebf6f5c8b4..cd179ae7c2fee530e1d83160a1934acc5680719e 100644 --- a/frameworks/core/src/ans_notification.cpp +++ b/frameworks/core/src/ans_notification.cpp @@ -294,7 +294,7 @@ ErrCode AnsNotification::CancelNotification(int32_t notificationId) ErrCode AnsNotification::CancelNotification(const std::string &label, int32_t notificationId) { - ANS_LOGI("enter CancelNotification,notificationId:%{public}d", notificationId); + ANS_LOGD("enter CancelNotification,notificationId:%{public}d", notificationId); HITRACE_METER_NAME(HITRACE_TAG_NOTIFICATION, __PRETTY_FUNCTION__); sptr proxy = GetAnsManagerProxy(); if (!proxy) { diff --git a/frameworks/js/napi/src/common_utils.cpp b/frameworks/js/napi/src/common_utils.cpp index 5bc276db5e0a0b42f65eb80c1e84c6cd0c928ac3..50aaa9ee1d583daf4be07daa4aedf70561db5e7b 100644 --- a/frameworks/js/napi/src/common_utils.cpp +++ b/frameworks/js/napi/src/common_utils.cpp @@ -87,7 +87,7 @@ napi_value Common::NapiGetUndefined(napi_env env) napi_value Common::CreateErrorValue(napi_env env, int32_t errCode, bool newType) { - ANS_LOGI("enter, errorCode[%{public}d]", errCode); + ANS_LOGI("errorCode[%{public}d]", errCode); napi_value error = Common::NapiGetNull(env); if (errCode == ERR_OK && newType) { return error; @@ -108,7 +108,7 @@ napi_value Common::CreateErrorValue(napi_env env, int32_t errCode, bool newType) napi_value Common::CreateErrorValue(napi_env env, int32_t errCode, std::string &msg) { - ANS_LOGI("enter, errorCode[%{public}d]", errCode); + ANS_LOGI("errorCode[%{public}d]", errCode); napi_value error = Common::NapiGetNull(env); if (errCode == ERR_OK) { return error; diff --git a/frameworks/js/napi/src/subscribe.cpp b/frameworks/js/napi/src/subscribe.cpp index 84c31a07b2784167ae2da3b24c09d65850769a7d..20ff4cb49cfd754016b95f496be241320ad6efd4 100644 --- a/frameworks/js/napi/src/subscribe.cpp +++ b/frameworks/js/napi/src/subscribe.cpp @@ -379,7 +379,7 @@ void SubscriberInstance::OnConsumed(const std::shared_ptr(data); switch (dataWorkerData->type) { case Type::CANCEL: diff --git a/frameworks/js/napi/src/subscribe/init_module.cpp b/frameworks/js/napi/src/subscribe/init_module.cpp index 20ac78e9f515aefdd3316bbc4f49ec3cf135ce16..cdf897820dfc123d2908fb095c4ff05293aafb4e 100644 --- a/frameworks/js/napi/src/subscribe/init_module.cpp +++ b/frameworks/js/napi/src/subscribe/init_module.cpp @@ -27,7 +27,7 @@ EXTERN_C_START napi_value NotificationSubscribeInit(napi_env env, napi_value exports) { - ANS_LOGI("NotificationSubscribeInit start"); + ANS_LOGD("start"); napi_property_descriptor desc[] = { DECLARE_NAPI_FUNCTION("subscribe", NapiSubscribe), diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index c8d6900e995dd949d5235a2cd1e440153bf53c7a..2e849bbc440077de98266f18670c224fb836f1bd 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -649,7 +649,7 @@ ErrCode AdvancedNotificationService::PublishPreparedNotification(const sptr &bundleOption, bool isUpdateByOwner) { HITRACE_METER_NAME(HITRACE_TAG_NOTIFICATION, __PRETTY_FUNCTION__); - ANS_LOGI("PublishPreparedNotification"); + ANS_LOGD("PublishPreparedNotification"); auto tokenCaller = IPCSkeleton::GetCallingTokenID(); bool isAgentController = AccessTokenHelper::VerifyCallerPermission(tokenCaller, OHOS_PERMISSION_NOTIFICATION_AGENT_CONTROLLER); @@ -762,7 +762,7 @@ void AdvancedNotificationService::QueryDoNotDisturbProfile(const int32_t &userId return; } if (enable != DO_NOT_DISTURB_MODE) { - ANS_LOGI("Currently not is do not disturb mode."); + ANS_LOGD("Currently not is do not disturb mode."); return; } Uri idUri(datashareHelper->GetFocusModeProfileUri(userId)); @@ -2526,7 +2526,7 @@ void AdvancedNotificationService::SetClassificationWithVoip(const sptrSetClassification(""); return; } diff --git a/services/ans/src/notification_local_live_view_subscriber_manager.cpp b/services/ans/src/notification_local_live_view_subscriber_manager.cpp index b895f47fe20db8ea8b7aa689680bd86215799ad9..9219525ef3f7a4e402a8769de1ccd0b7ce24df89 100644 --- a/services/ans/src/notification_local_live_view_subscriber_manager.cpp +++ b/services/ans/src/notification_local_live_view_subscriber_manager.cpp @@ -225,7 +225,7 @@ ErrCode NotificationLocalLiveViewSubscriberManager::AddSubscriberInner( record->subscriber->AsObject()->AddDeathRecipient(recipient_); record->subscriber->OnConnected(); - ANS_LOGI("subscriber is connected."); + ANS_LOGD("subscriber is connected."); } return ERR_OK;