[iOS] Not log callback cache info if cache is empty (flutter/engine#36996)

This commit is contained in:
Wu Zhong
2022-11-01 10:46:34 +08:00
committed by GitHub
parent 7783d67148
commit fa3c339f45

View File

@@ -130,8 +130,7 @@ void DartCallbackCache::LoadCacheFromDisk() {
Document d;
d.Parse(cache_contents.c_str());
if (d.HasParseError() || !d.IsArray()) {
FML_LOG(INFO) << "Could not parse callback cache, aborting restore";
// TODO(bkonyi): log and bail (delete cache?)
// Could not parse callback cache, aborting restore.
return;
}
const auto entries = d.GetArray();