diff --git a/services/bundlemgr/src/pre_bundle_profile.cpp b/services/bundlemgr/src/pre_bundle_profile.cpp index 0ffaa150730d2cf778d9dd4e558c0b6f7b799cdb..b505fbe495f40c6f0dd98c9e68144aa4930c655f 100644 --- a/services/bundlemgr/src/pre_bundle_profile.cpp +++ b/services/bundlemgr/src/pre_bundle_profile.cpp @@ -534,6 +534,7 @@ void PreBundleProfile::ProcessOnDemandList(std::set &scanAppInfos, { for (auto iter = scanAppInfos.begin(); iter != scanAppInfos.end();) { if (iter->onDemandInstall) { + APP_LOGI("%{public}s is onDemandInstall", iter->bundleDir.c_str()); PreScanInfo preScanInfo; preScanInfo.removable = iter->removable; preScanInfo.isDataPreloadHap = iter->isDataPreloadHap; @@ -543,7 +544,6 @@ void PreBundleProfile::ProcessOnDemandList(std::set &scanAppInfos, preScanInfo.onDemandInstall = iter->onDemandInstall; scanDemandInfos.insert(preScanInfo); iter = scanAppInfos.erase(iter); - APP_LOGI("%{public}s is onDemandInstall", iter->bundleDir.c_str()); } else { ++iter; }