mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 14:49:59 +00:00
日志级别修改
Signed-off-by: h30051954 <hemenghao2@huawei.com>
This commit is contained in:
parent
d706ab4ee7
commit
d20d82fd53
@ -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;
|
||||
|
@ -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_);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user