Index: delta_performer.cc |
diff --git a/delta_performer.cc b/delta_performer.cc |
index 8cf0226e5edbe0fae2e1db4b09e701ae58c282b2..04273f34e732037e543e29b64254da8485def354 100644 |
--- a/delta_performer.cc |
+++ b/delta_performer.cc |
@@ -193,8 +193,12 @@ ssize_t DeltaPerformer::Write(const void* bytes, size_t count) { |
next_operation_num_ - manifest_.install_operations_size()); |
if (!CanPerformInstallOperation(op)) |
break; |
- LOG(INFO) << "Performing operation " << next_operation_num_ << "/" |
- << total_operations; |
+ // Log every thousandth operation, and also the first and last ones |
+ if ((next_operation_num_ % 1000 == 0) || |
+ (next_operation_num_ + 1 == total_operations)) { |
+ LOG(INFO) << "Performing operation " << (next_operation_num_ + 1) << "/" |
+ << total_operations; |
+ } |
bool is_kernel_partition = |
(next_operation_num_ >= manifest_.install_operations_size()); |
if (op.type() == DeltaArchiveManifest_InstallOperation_Type_REPLACE || |