!1222 日志级别修改

Merge pull request !1222 from hemenghao/master
This commit is contained in:
openharmony_ci 2024-06-04 14:02:56 +00:00 committed by Gitee
commit a24d95531e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@ std::string FileOperator::Read(const std::string &path, const std::string &key)
return "";
}
if (content.find(key) == std::string::npos) {
IMSA_HILOGE("%{public}s not contain %{public}s", path.c_str(), key.c_str());
IMSA_HILOGD("%{public}s not contain %{public}s", path.c_str(), key.c_str());
return "";
}
return content;

View File

@ -54,7 +54,7 @@ bool InputTypeManager::IsSupported(InputType type)
bool InputTypeManager::IsInputType(const ImeIdentification &ime)
{
if (!isTypeCfgReady_.load() && !Init()) {
IMSA_HILOGE("init cfg failed");
IMSA_HILOGD("init cfg failed");
return false;
}
std::lock_guard<std::mutex> lock(listLock_);

View File

@ -38,7 +38,7 @@ bool SysCfgParser::ParseInputType(std::vector<InputTypeInfo> &inputType)
{
auto content = GetSysCfgContent(GET_NAME(supportedInputTypeList));
if (content.empty()) {
IMSA_HILOGE("empty content");
IMSA_HILOGD("empty content");
return false;
}
InputTypeCfg inputTypeCfg;
@ -65,7 +65,7 @@ std::string SysCfgParser::GetSysCfgContent(const std::string &key)
std::string content;
auto ret = FileOperator::Read(SYS_CFG_FILE_PATH, key, content);
if (!ret) {
IMSA_HILOGE("get content by %{public}s failed", key.c_str());
IMSA_HILOGD("get content by %{public}s failed", key.c_str());
}
return content;
}