Reduce logspam in DirectoryAssetBundle (flutter/engine#4690)
It's not an error to request an asset that doesn't exist. In fact, we request kernel_blob.bin unconditionally at startup, which doesn't typically exist.
This commit is contained in:
@@ -25,10 +25,8 @@ bool DirectoryAssetBundle::GetAsBuffer(const std::string& asset_name,
|
|||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
fxl::UniqueFD asset_file(openat(fd_.get(), asset_name.c_str(), O_RDONLY));
|
fxl::UniqueFD asset_file(openat(fd_.get(), asset_name.c_str(), O_RDONLY));
|
||||||
if (!asset_file.is_valid()) {
|
if (!asset_file.is_valid())
|
||||||
FXL_LOG(ERROR) << "Could not load asset " << asset_name;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
constexpr size_t kBufferSize = 1 << 16;
|
constexpr size_t kBufferSize = 1 << 16;
|
||||||
size_t offset = 0;
|
size_t offset = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user