Merge "libsnapshot: log compression algorithm" into main

This commit is contained in:
Daniel Zheng 2024-02-21 22:17:03 +00:00 committed by Gerrit Code Review
commit 7cf49320ba
2 changed files with 2 additions and 1 deletions

View file

@ -121,7 +121,6 @@ bool CowWriterV3::ParseOptions() {
return false;
}
LOG(INFO) << "Compression factor: " << header_.max_compression_size;
num_compress_threads_ = std::max(int(options_.num_compress_threads), 1);
auto parts = android::base::Split(options_.compression, ",");
if (parts.size() > 2) {

View file

@ -3242,6 +3242,8 @@ Return SnapshotManager::CreateUpdateSnapshots(const DeltaArchiveManifest& manife
// Older OTAs don't set an explicit compression type, so default to gz.
compression_algorithm = "gz";
}
LOG(INFO) << "using compression algorithm: " << compression_algorithm
<< ", max compressible block size: " << compression_factor;
}
PartitionCowCreator cow_creator{