日志级别修改

Signed-off-by: h30051954 <hemenghao2@huawei.com>
This commit is contained in:
h30051954 2024-06-04 19:24:35 +08:00
parent d706ab4ee7
commit d20d82fd53
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;
}