Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: delta_performer.cc

Issue 3119031: AU: clean up logs (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | subprocess.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ||
« no previous file with comments | « no previous file | subprocess.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698