Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0be0f736 authored by Nathan Bullock's avatar Nathan Bullock Committed by chrome-internal-fetch
Browse files

metrics: Add more log messages to uploader

TEST=compiled
BUG=none

Change-Id: Iee49b104d0b6214e035f70fa108ae7464bd7988f
Reviewed-on: https://chromium-review.googlesource.com/217338


Reviewed-by: default avatarBertrand Simonnet <bsimonnet@chromium.org>
Tested-by: default avatarNathan Bullock <nathanbullock@google.com>
Commit-Queue: Nathan Bullock <nathanbullock@google.com>
parent eb815be5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -313,6 +313,7 @@ void MetricsDaemon::Init(bool testing,
      g_timeout_add(kUpdateStatsIntervalMs, &HandleUpdateStatsTimeout, this);

  if (uploader_active) {
    LOG(INFO) << "uploader enabled";
    upload_service_.reset(new UploadService(testing_));
    upload_service_->Init();
  }
+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,8 @@ void UploadService::SendStagedLog() {
      return;
    }
    LOG(WARNING) << "log failed more than " << kMaxFailedUpload << " times.";
  } else {
    LOG(INFO) << "uploaded " << log_text.length() << " bytes";
  }
  // Discard staged log.
  staged_log_.reset();