diff options
author | stevenjb <stevenjb@chromium.org> | 2015-07-30 10:23:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-30 17:23:50 +0000 |
commit | bf16eec0898ae8e91944e4763b1492252da163d9 (patch) | |
tree | 66c6043c7bcc0bb56c6d067c2551612069548434 /components/ownership | |
parent | 441dfbeafb418ad03e21c74a835bad615f4b2b67 (diff) | |
download | chromium_src-bf16eec0898ae8e91944e4763b1492252da163d9.zip chromium_src-bf16eec0898ae8e91944e4763b1492252da163d9.tar.gz chromium_src-bf16eec0898ae8e91944e4763b1492252da163d9.tar.bz2 |
Reduce LOG(ERROR) spam on linux with chromeos=1
LOG(ERROR) Spam makes failing tests more difficult to debug
and obscures actual errors. This cleans up some spam that
always shows up when running on Linux with chromeos=1.
BUG=none
Review URL: https://codereview.chromium.org/1254013002
Cr-Commit-Position: refs/heads/master@{#341145}
Diffstat (limited to 'components/ownership')
-rw-r--r-- | components/ownership/owner_key_util_impl.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/ownership/owner_key_util_impl.cc b/components/ownership/owner_key_util_impl.cc index 6a95131..fdf29e9 100644 --- a/components/ownership/owner_key_util_impl.cc +++ b/components/ownership/owner_key_util_impl.cc @@ -4,12 +4,12 @@ #include "components/ownership/owner_key_util_impl.h" +#include <keythi.h> #include <limits> #include "base/files/file_util.h" #include "base/logging.h" - -#include <keythi.h> +#include "base/sys_info.h" #include "crypto/nss_key_util.h" namespace ownership { @@ -26,7 +26,8 @@ bool OwnerKeyUtilImpl::ImportPublicKey(std::vector<uint8>* output) { int64 file_size; if (!base::GetFileSize(public_key_file_, &file_size)) { #if defined(OS_CHROMEOS) - LOG(ERROR) << "Could not get size of " << public_key_file_.value(); + LOG_IF(ERROR, base::SysInfo::IsRunningOnChromeOS()) + << "Could not get size of " << public_key_file_.value(); #endif // defined(OS_CHROMEOS) return false; } |