@@ -51,8 +51,8 @@ PersistentCache::PersistentCache()
51
51
},
52
52
fml::FilePermission::kReadWrite ))) {
53
53
if (!IsValid ()) {
54
- FML_LOG (ERROR ) << " Could not acquire the persistent cache directory. "
55
- " Caching of GPU resources on disk is disabled." ;
54
+ FML_LOG (WARNING ) << " Could not acquire the persistent cache directory. "
55
+ " Caching of GPU resources on disk is disabled." ;
56
56
}
57
57
}
58
58
@@ -90,21 +90,23 @@ static void PersistentCacheStore(fml::RefPtr<fml::TaskRunner> worker,
90
90
std::shared_ptr<fml::UniqueFD> cache_directory,
91
91
std::string key,
92
92
std::unique_ptr<fml::Mapping> value) {
93
- auto task = fml::MakeCopyable ([cache_directory, //
94
- file_name = std::move (key), //
95
- mapping = std::move (value) //
93
+ auto task =
94
+ fml::MakeCopyable ([cache_directory, //
95
+ file_name = std::move (key), //
96
+ mapping = std::move (value) //
96
97
]() mutable {
97
- TRACE_EVENT0 (" flutter" , " PersistentCacheStore" );
98
- if (!fml::WriteAtomically (*cache_directory, //
99
- file_name.c_str (), //
100
- *mapping) //
101
- ) {
102
- FML_DLOG (ERROR) << " Could not write cache contents to persistent store." ;
103
- }
104
- });
98
+ TRACE_EVENT0 (" flutter" , " PersistentCacheStore" );
99
+ if (!fml::WriteAtomically (*cache_directory, //
100
+ file_name.c_str (), //
101
+ *mapping) //
102
+ ) {
103
+ FML_DLOG (WARNING)
104
+ << " Could not write cache contents to persistent store." ;
105
+ }
106
+ });
105
107
106
108
if (!worker) {
107
- FML_LOG (ERROR )
109
+ FML_LOG (WARNING )
108
110
<< " The persistent cache has no available workers. Performing the task "
109
111
" on the current thread. This slow operation is going to occur on a "
110
112
" frame workload." ;
0 commit comments