From: Jihoon Kim Date: Mon, 28 Aug 2017 05:46:45 +0000 (+0900) Subject: Save logs to set IMEngine X-Git-Tag: accepted/tizen/unified/20170904.144410~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6b2e1f9251f420a67b75ee7ccb0a578bea4aa43;p=platform%2Fcore%2Fuifw%2Fisf.git Save logs to set IMEngine Change-Id: I91fc313f4ca221f4683ad947759513b1c5ef7fb2 Signed-off-by: Jihoon Kim --- diff --git a/ism/src/scim_helper.cpp b/ism/src/scim_helper.cpp index c7bc452..17794a6 100644 --- a/ism/src/scim_helper.cpp +++ b/ism/src/scim_helper.cpp @@ -2305,7 +2305,7 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const static int instance_count = 1; if ((!m_impl->si.null ()) && m_impl->si->get_factory_uuid () == uuid) { - LOGD ("Already in UUID: %s\n", uuid.c_str()); + ISF_SAVE_LOG ("Already in UUID: %s\n", uuid.c_str()); return; } @@ -2315,7 +2315,7 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const } if (m_impl->m_config.null ()) { - LOGW ("config is not working"); + ISF_SAVE_LOG ("config is not working"); return; } @@ -2325,13 +2325,13 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const pkgmgrinfo_appinfo_h handle; ret = pkgmgrinfo_appinfo_get_appinfo(uuid.c_str(), &handle); if (ret != PMINFO_R_OK) { - LOGW("Retrieve app info failed : %s", uuid.c_str ()); + ISF_SAVE_LOG ("Retrieve app info failed : %s", uuid.c_str ()); return; } ret = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgid); if (ret != PMINFO_R_OK) { - LOGW("Retrieve pkgid failed : %s, %p", uuid.c_str(), handle); + ISF_SAVE_LOG ("Retrieve pkgid failed : %s, %p", uuid.c_str(), handle); pkgmgrinfo_appinfo_destroy_appinfo(handle); return; } @@ -2340,7 +2340,7 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const pkgmgrinfo_appinfo_destroy_appinfo(handle); #else if (isf_db_select_ime_info_by_appid(uuid.c_str(), &imeInfo) < 1) { - LOGW("ime_info row is not available for %s", uuid.c_str()); + ISF_SAVE_LOG ("ime_info row is not available for %s", uuid.c_str()); return; } #endif @@ -2348,16 +2348,16 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const engine_module = &m_impl->engine_module; if (engine_module->valid() && imeInfo.module_name != engine_module->get_module_name()) { - LOGD ("imengine module %s unloaded", engine_module->get_module_name().c_str()); + ISF_SAVE_LOG ("imengine module %s unloaded", engine_module->get_module_name().c_str()); engine_module->unload(); } if (!engine_module->valid()) { if (engine_module->load (imeInfo.module_name, m_impl->m_config) == false) { - LOGW ("load module %s failed", imeInfo.module_name.c_str()); + ISF_SAVE_LOG ("load module %s failed", imeInfo.module_name.c_str()); return; } - LOGD ("imengine module %s loaded", imeInfo.module_name.c_str()); + ISF_SAVE_LOG ("imengine module %s loaded", imeInfo.module_name.c_str()); } for (size_t j = 0; j < engine_module->number_of_factories (); ++j) { @@ -2372,18 +2372,18 @@ HelperAgent::set_keyboard_ise_by_uuid (const String &uuid) const } if (factory.null()) { - LOGW ("imengine uuid %s is not found", uuid.c_str()); + ISF_SAVE_LOG ("imengine uuid %s is not found", uuid.c_str()); return; } m_impl->si = factory->create_instance ("UTF-8", instance_count++); if (m_impl->si.null ()) { - LOGE ("create_instance %s failed", uuid.c_str ()); + ISF_SAVE_LOG ("create_instance %s failed", uuid.c_str ()); return; } m_impl->attach_instance (); - LOGD ("Require UUID: %s Current UUID: %s", uuid.c_str (), m_impl->si->get_factory_uuid ().c_str ()); + ISF_SAVE_LOG ("Require UUID: %s Current UUID: %s", uuid.c_str (), m_impl->si->get_factory_uuid ().c_str ()); m_impl->si->set_layout (m_impl->layout); if (m_impl->focused_ic != (uint32)-1) m_impl->si->focus_in ();