diff --git a/frameworks/core/components/container_modal/container_modal_element.cpp b/frameworks/core/components/container_modal/container_modal_element.cpp index 0b9fff80b5f..390add82868 100644 --- a/frameworks/core/components/container_modal/container_modal_element.cpp +++ b/frameworks/core/components/container_modal/container_modal_element.cpp @@ -532,7 +532,7 @@ void ContainerModalElement::SetAppTitle(const std::string& title) auto textComponent = containerModalComponent_->GetTitleLabel(); CHECK_NULL_VOID(textComponent); if (textComponent->GetData() == title) { - TAG_LOGI(AceLogTag::ACE_APPBAR, "set same title, skip, title is %{public}s", title.c_str()); + TAG_LOGI(AceLogTag::ACE_APPBAR, "set same title, skip"); return; } textComponent->SetData(title); @@ -541,9 +541,8 @@ void ContainerModalElement::SetAppTitle(const std::string& title) CHECK_NULL_VOID(renderTitle); renderTitle->Update(textComponent); renderTitle->MarkNeedRender(); - TAG_LOGI(AceLogTag::ACE_APPBAR, - "set app title successfully, title:%{public}s, isFloatingTitle:%{public}d", - title.c_str(), static_cast(isFloatingTitle)); + TAG_LOGI(AceLogTag::ACE_APPBAR, "set app title successfully, isFloatingTitle:%{public}d", + static_cast(isFloatingTitle)); } void ContainerModalElement::SetAppIcon(const RefPtr& icon) diff --git a/frameworks/core/components_ng/pattern/container_modal/container_modal_pattern.cpp b/frameworks/core/components_ng/pattern/container_modal/container_modal_pattern.cpp index 89a2e0f5fb3..f59991c9764 100644 --- a/frameworks/core/components_ng/pattern/container_modal/container_modal_pattern.cpp +++ b/frameworks/core/components_ng/pattern/container_modal/container_modal_pattern.cpp @@ -454,7 +454,7 @@ bool ContainerModalPattern::CanShowFloatingTitle() void ContainerModalPattern::SetAppTitle(const std::string& title) { - TAG_LOGI(AceLogTag::ACE_APPBAR, "SetAppTitle successfully, title is %{public}s", title.c_str()); + TAG_LOGI(AceLogTag::ACE_APPBAR, "SetAppTitle successfully"); auto customTitleNode = GetCustomTitleNode(); CHECK_NULL_VOID(customTitleNode); customTitleNode->FireAppTitleCallback(title);