!11688 wantagent日志级别调整

Merge pull request !11688 from linjunjie/ljj_master
This commit is contained in:
openharmony_ci 2024-11-21 13:03:03 +00:00 committed by Gitee
commit 3cb580fcb5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 2 deletions

View File

@ -129,7 +129,7 @@ sptr<IWantSender> PendingWantManager::GetWantSenderLocked(const int32_t callingU
rec->SetCallerUid(callingUid);
pendingKey->SetCode(PendingRecordIdCreate());
wantRecords_.insert(std::make_pair(pendingKey, rec));
TAG_LOGD(AAFwkTag::WANTAGENT, "wantRecords_ size %{public}zu", wantRecords_.size());
TAG_LOGI(AAFwkTag::WANTAGENT, "wantRecords_ size %{public}zu", wantRecords_.size());
return rec;
}
return nullptr;
@ -137,7 +137,7 @@ sptr<IWantSender> PendingWantManager::GetWantSenderLocked(const int32_t callingU
void PendingWantManager::MakeWantSenderCanceledLocked(PendingWantRecord &record)
{
TAG_LOGD(AAFwkTag::WANTAGENT, "begin");
TAG_LOGI(AAFwkTag::WANTAGENT, "begin");
record.SetCanceled();
for (auto &callback : record.GetCancelCallbacks()) {

View File

@ -81,6 +81,7 @@ int32_t PendingWantRecord::SenderInner(SenderInfo &senderInfo)
return ERR_INVALID_VALUE;
}
TAG_LOGI(AAFwkTag::WANTAGENT, "before CancelWantSenderLocked");
if (((uint32_t)key_->GetFlags() & (uint32_t)Flags::ONE_TIME_FLAG) != 0) {
pendingWantManager->CancelWantSenderLocked(*this, true);
}