From d9f1ade7c3545a13ec28c2ef3c9c0cc2ebfbe98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E5=89=91=E6=AD=A6?= Date: Thu, 25 Jul 2019 11:10:31 +0800 Subject: [PATCH] change error logs to warning ones in read opencl files --- mace/core/kv_storage.cc | 2 +- mace/utils/tuner.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mace/core/kv_storage.cc b/mace/core/kv_storage.cc index 9ff49688..5803a6d7 100644 --- a/mace/core/kv_storage.cc +++ b/mace/core/kv_storage.cc @@ -106,7 +106,7 @@ int FileStorage::Load() { auto status = fs->NewReadOnlyMemoryRegionFromFile( file_path_.c_str(), &kv_data); if (status != MaceStatus::MACE_SUCCESS) { - LOG(ERROR) << "Failed to read kv store file: " << file_path_; + LOG(WARNING) << "Failed to read kv store file: " << file_path_; return -1; } else { ParseKVData(static_cast(kv_data->data()), diff --git a/mace/utils/tuner.h b/mace/utils/tuner.h index 41a185fd..45485234 100644 --- a/mace/utils/tuner.h +++ b/mace/utils/tuner.h @@ -167,8 +167,8 @@ class Tuner { auto status = fs->NewReadOnlyMemoryRegionFromFile( tuned_param_file_path_.c_str(), ¶m_data); if (status != MaceStatus::MACE_SUCCESS) { - LOG(ERROR) << "Failed to read tuned param file: " - << tuned_param_file_path_; + LOG(WARNING) << "Failed to read tuned param file: " + << tuned_param_file_path_; return; } else { ParseData(static_cast(param_data->data()), -- GitLab