Commit 635d13f0 authored by Daniel Erat's avatar Daniel Erat Committed by Commit Bot

chromeos: Downgrade StatisticsProvider warnings to VLOG(1).

Change several LOG(WARNINGS) in chromeos::StatisticsProvider
to VLOG(1) to reduce log spam:

- "Requested statistic not found: ..."
- "Requested machine flag not found: ..."
- "CrOS region set to '...'"

Bug: 844258
Change-Id: I4a375f39ec919a62543366104d31367db715c54a
Reviewed-on: https://chromium-review.googlesource.com/1098473Reviewed-by: default avatarThiemo Nagel <tnagel@chromium.org>
Reviewed-by: default avatarIgor <igorcov@chromium.org>
Commit-Queue: Dan Erat <derat@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566819}
parent e42108d7
......@@ -412,7 +412,7 @@ bool StatisticsProviderImpl::GetMachineStatistic(const std::string& name,
if (result != nullptr &&
base::SysInfo::IsRunningOnChromeOS() &&
(oem_manifest_loaded_ || !HasOemPrefix(name))) {
LOG(WARNING) << "Requested statistic not found: " << name;
VLOG(1) << "Requested statistic not found: " << name;
}
return false;
}
......@@ -434,7 +434,7 @@ bool StatisticsProviderImpl::GetMachineFlag(const std::string& name,
if (result != nullptr &&
base::SysInfo::IsRunningOnChromeOS() &&
(oem_manifest_loaded_ || !HasOemPrefix(name))) {
LOG(WARNING) << "Requested machine flag not found: " << name;
VLOG(1) << "Requested machine flag not found: " << name;
}
return false;
}
......@@ -613,7 +613,7 @@ void StatisticsProviderImpl::LoadMachineStatistics(bool load_oem_manifest) {
region_ =
command_line->GetSwitchValueASCII(chromeos::switches::kCrosRegion);
machine_info_[kRegionKey] = region_;
LOG(WARNING) << "CrOS region set to '" << region_ << "'";
VLOG(1) << "CrOS region set to '" << region_ << "'";
}
if (regional_data_.get() && !region_.empty() && !GetRegionDictionary())
......
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