Commit 9e936e16 authored by stevenjb@chromium.org's avatar stevenjb@chromium.org

Reduce log spam for linux-chromeos

BUG=393266

Review URL: https://codereview.chromium.org/382403002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284722 0039d316-1c4b-4281-b951-d872f2087c98
parent 92d9aba1
......@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/stl_util.h"
#include "base/sys_info.h"
#include "chromeos/chromeos_paths.h"
#include "crypto/rsa_private_key.h"
......@@ -58,7 +59,8 @@ bool OwnerKeyUtilImpl::ImportPublicKey(std::vector<uint8>* output) {
// Get the file size (must fit in a 32 bit int for NSS).
int64 file_size;
if (!base::GetFileSize(key_file_, &file_size)) {
LOG(ERROR) << "Could not get size of " << key_file_.value();
LOG_IF(ERROR, base::SysInfo::IsRunningOnChromeOS())
<< "Could not get size of " << key_file_.value();
return false;
}
if (file_size > static_cast<int64>(std::numeric_limits<int>::max())) {
......
......@@ -5,6 +5,7 @@
#include "chromeos/network/host_resolver_impl_chromeos.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/sys_info.h"
#include "base/values.h"
#include "chromeos/network/device_state.h"
#include "chromeos/network/network_handler.h"
......@@ -61,8 +62,9 @@ class HostResolverImplChromeOS::NetworkObserver
const DeviceState* device_state =
network_state_handler_->GetDeviceState(network->device_path());
if (!device_state) {
LOG(ERROR) << "DefaultNetworkChanged: Network missing device: "
<< network->path();
LOG_IF(ERROR, base::SysInfo::IsRunningOnChromeOS())
<< "DefaultNetworkChanged: Network missing device: "
<< network->path();
CallResolverSetIpAddress("", "");
return;
}
......
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