LOGD("package_manager_set_event_cb succeeded.");
}
else {
+ ISF_SAVE_LOG("package_manager_set_event_cb failed(%d)\n", ret);
LOGW("package_manager_set_event_cb failed(%d)", ret);
}
}
else {
+ ISF_SAVE_LOG("package_manager_create failed(%d)\n", ret);
LOGW("package_manager_create failed(%d)", ret);
}
}
if (ret == PMINFO_R_OK)
ime_db.appid = String (appid ? appid : "");
else {
+ ISF_SAVE_LOG ("appid is not available!\n");
LOGW ("appid is not available!");
return 0;
}
if (ret == PMINFO_R_OK)
ime_db.pkgid = String (pkgid ? pkgid : "");
else {
+ ISF_SAVE_LOG ("pkgid is not available!\n");
LOGW ("pkgid is not available!");
return 0;
}
if (ret == PMINFO_R_OK)
ime_db.exec = String (exec ? exec : "");
else {
+ ISF_SAVE_LOG ("exec is not available!\n");
LOGW ("exec is not available!");
return 0;
}
if (ret == PMINFO_R_OK) {
ret = pkgmgrinfo_appinfo_filter_foreach_appinfo (handle, isf_pkg_ime_app_list_cb, NULL);
}
+ else {
+ ISF_SAVE_LOG ("pkgmgrinfo_appinfo_filter_add_string failed(%d)\n", ret);
+ }
pkgmgrinfo_appinfo_filter_destroy (handle);
}
+ else {
+ ISF_SAVE_LOG ("pkgmgrinfo_appinfo_filter_create failed(%d)\n", ret);
+ }
}
/**
ret = sqlite3_prepare_v2(databaseInfo.pHandle, pQuery, -1, &pStmt, NULL);
if (ret != SQLITE_OK) {
+ ISF_SAVE_LOG("sqlite3_prepare_v2: %s\n", sqlite3_errmsg(databaseInfo.pHandle));
LOGE("sqlite3_prepare_v2: %s", sqlite3_errmsg(databaseInfo.pHandle));
return i;
}
ret = sqlite3_step(pStmt);
if (ret != SQLITE_DONE) {
+ ISF_SAVE_LOG("sqlite3_step returned %d, appid=%s, %s\n", ret, ime_db->appid.c_str(), sqlite3_errmsg(databaseInfo.pHandle));
LOGW("sqlite3_step returned %d, appid=%s, %s", ret, ime_db->appid.c_str(), sqlite3_errmsg(databaseInfo.pHandle));
ret = SQLITE_ERROR;
goto out;
ret = sqlite3_prepare_v2(databaseInfo.pHandle, pQuery, -1, &pStmt, NULL);
if (ret != SQLITE_OK) {
+ ISF_SAVE_LOG("sqlite3_prepare_v2: %s\n", sqlite3_errmsg(databaseInfo.pHandle));
LOGE("sqlite3_prepare_v2: %s", sqlite3_errmsg(databaseInfo.pHandle));
return i;
}
ret = _db_insert_ime_info(ime_db);
_db_disconnect();
}
- else
- LOGW("failed");
+ else {
+ ISF_SAVE_LOG("_db_connect() failed\n");
+ }
return ret;
}
load_engine_list.push_back (*it);
}
+ /* Unless the target is no-keyboard model, we have a problem. */
+ if (load_engine_list.size () < 1) {
+ LOGW ("*** There is no helper/imeengine!");
+ ISF_SAVE_LOG ("*** There is no helper/imeengine!\n");
+ }
+
/* Use x11 FrontEnd as default if available. */
if (frontend_list.size ()) {
def_frontend = String ("x11");
for (it = helper_list.begin (); it != helper_list.end (); it++)
engine_list.push_back (*it);
+ /* Unless the target is no-keyboard model, we have a problem. */
+ if (engine_list.size () < 1) {
+ ISF_SAVE_LOG ("*** There is no helper/imeengine!\n");
+ }
+
list = scim_combine_string_list(engine_list, ',');
if (list.length () < 1)
new_argv [new_argc ++] = argv [i];
vsnprintf (buf, sizeof (buf), fmt, ap);
va_end (ap);
- const int MAX_LOG_FILE_SIZE = 12 * 1024; /* 12KB */
+ const int MAX_LOG_FILE_SIZE = 16 * 1024; /* 16KB */
static bool size_exceeded = false;
static struct stat st;