Commit fa741c54 authored by Owen Min's avatar Owen Min Committed by Commit Bot

Add log in enterprise reporting

Add a log indicates first report remaining time.

Bug: 956237
Change-Id: I266c5ae59a52cf11e9e9d4ad340032af43d32dbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1796763Reviewed-by: default avatarYann Dago <ydago@chromium.org>
Commit-Queue: Owen Min <zmin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695328}
parent ce2db13a
......@@ -109,6 +109,9 @@ void ReportScheduler::Start() {
g_browser_process->local_state()->GetTime(kLastUploadTimestamp));
// The first report delay is based on the |lastUploadTimestamp| in the
// |local_state|, after that, it's 24 hours for each succeeded upload.
VLOG(1) << "Schedule the first report in about "
<< first_request_delay.InHours() << " hour(s) and "
<< first_request_delay.InMinutes() % 60 << " minute(s).";
request_timer_->Start(
FROM_HERE, first_request_delay, upload_interval,
base::BindRepeating(&ReportScheduler::GenerateAndUploadReport,
......@@ -139,7 +142,7 @@ void ReportScheduler::OnReportGenerated(ReportGenerator::Requests requests) {
}
void ReportScheduler::OnReportUploaded(ReportUploader::ReportStatus status) {
VLOG(1) << "The enterprise report upload result " << status;
VLOG(1) << "The enterprise report upload result " << status << ".";
switch (status) {
case ReportUploader::kSuccess:
// Schedule the next report for success. Reset uploader to reset failure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment