metrics: Add more log messages to uploader
TEST=compiled
BUG=none
Change-Id: Iee49b104d0b6214e035f70fa108ae7464bd7988f
Reviewed-on: https://chromium-review.googlesource.com/217338
Reviewed-by: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Nathan Bullock <nathanbullock@google.com>
Commit-Queue: Nathan Bullock <nathanbullock@google.com>
diff --git a/metrics/metrics_daemon.cc b/metrics/metrics_daemon.cc
index c0c77fa..b8d013d 100644
--- a/metrics/metrics_daemon.cc
+++ b/metrics/metrics_daemon.cc
@@ -313,6 +313,7 @@
g_timeout_add(kUpdateStatsIntervalMs, &HandleUpdateStatsTimeout, this);
if (uploader_active) {
+ LOG(INFO) << "uploader enabled";
upload_service_.reset(new UploadService(testing_));
upload_service_->Init();
}
diff --git a/metrics/uploader/upload_service.cc b/metrics/uploader/upload_service.cc
index 8e08f28..3266a8e 100644
--- a/metrics/uploader/upload_service.cc
+++ b/metrics/uploader/upload_service.cc
@@ -97,6 +97,8 @@
return;
}
LOG(WARNING) << "log failed more than " << kMaxFailedUpload << " times.";
+ } else {
+ LOG(INFO) << "uploaded " << log_text.length() << " bytes";
}
// Discard staged log.
staged_log_.reset();