diff --git a/engine/src/flutter/shell/common/persistent_cache.cc b/engine/src/flutter/shell/common/persistent_cache.cc index d33cb863d4..f7327a40b1 100644 --- a/engine/src/flutter/shell/common/persistent_cache.cc +++ b/engine/src/flutter/shell/common/persistent_cache.cc @@ -51,8 +51,8 @@ PersistentCache::PersistentCache() }, fml::FilePermission::kReadWrite))) { if (!IsValid()) { - FML_LOG(ERROR) << "Could not acquire the persistent cache directory. " - "Caching of GPU resources on disk is disabled."; + FML_LOG(WARNING) << "Could not acquire the persistent cache directory. " + "Caching of GPU resources on disk is disabled."; } } @@ -90,21 +90,23 @@ static void PersistentCacheStore(fml::RefPtr worker, std::shared_ptr cache_directory, std::string key, std::unique_ptr value) { - auto task = fml::MakeCopyable([cache_directory, // - file_name = std::move(key), // - mapping = std::move(value) // + auto task = + fml::MakeCopyable([cache_directory, // + file_name = std::move(key), // + mapping = std::move(value) // ]() mutable { - TRACE_EVENT0("flutter", "PersistentCacheStore"); - if (!fml::WriteAtomically(*cache_directory, // - file_name.c_str(), // - *mapping) // - ) { - FML_DLOG(ERROR) << "Could not write cache contents to persistent store."; - } - }); + TRACE_EVENT0("flutter", "PersistentCacheStore"); + if (!fml::WriteAtomically(*cache_directory, // + file_name.c_str(), // + *mapping) // + ) { + FML_DLOG(WARNING) + << "Could not write cache contents to persistent store."; + } + }); if (!worker) { - FML_LOG(ERROR) + FML_LOG(WARNING) << "The persistent cache has no available workers. Performing the task " "on the current thread. This slow operation is going to occur on a " "frame workload.";