if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCS, "[ERROR] Result : %d", ret);
} else {
- SLOG(LOG_DEBUG, TAG_VCS, "[SUCCESS] Set current engine");
+ SLOG(LOG_ERROR, TAG_VCS, "[SUCCESS] Set current engine(%s)", engine_appid);
}
SLOG(LOG_DEBUG, TAG_VCS, "[DEBUG] Daemon is not available");
} else {
ret = vc_setting_tidl_request_set_language(getpid(), language);
- SLOG(LOG_DEBUG, TAG_VCS, "[DEBUG] Set default language (%d)", ret);
+ SLOG(LOG_ERROR, TAG_VCS, "[DEBUG] Set default language(%s) (%d)", language, ret);
}
if (0 != vc_setting_tidl_close_connection()) {
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCS, "[ERROR] Result : %d", ret);
} else {
- SLOG(LOG_DEBUG, TAG_VCS, "[SUCCESS] Set auto language (%s)", value ? "on" : "off");
+ SLOG(LOG_ERROR, TAG_VCS, "[SUCCESS] Set auto language (%s)", value ? "on" : "off");
}
SLOG(LOG_DEBUG, TAG_VCS, "@@@ Set auto voice DONE");
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCS, "[ERROR] Result : %d", ret);
} else {
- SLOG(LOG_DEBUG, TAG_VCS, "[SUCCESS] Set service enabled (%s)", value ? "on" : "off");
+ SLOG(LOG_ERROR, TAG_VCS, "[SUCCESS] Set service enabled (%s)", value ? "on" : "off");
}
SLOG(LOG_DEBUG, TAG_VCS, "@@@ Set service enabled DONE");
return VC_CONFIG_ERROR_OPERATION_FAILED;
}
- strncpy(candidate_lang, value, 5);
+ strncpy(candidate_lang, value, 5); // candidate_lang == disply language
free(value);
SLOG(LOG_DEBUG, vc_config_tag(), "[Config] Display language : %s", candidate_lang);
/* Call all callbacks of client*/
notify_language_changed(before_language.c_str(), candidate_lang);
} else {
- /* Candidate language is not valid */
+ /* TODO: Keep the current language. Get the current language from Config */
+ /* Candidate language (display language) is not valid (not supported) */
+ SLOG(LOG_WARN, vc_config_tag(), "[Config] Candidate language(%s) is not supported by engine", candidate_lang);
char* tmp_language = NULL;
if (0 != get_default_language_of_engine(default_engine_id.c_str(), &tmp_language)) {
SLOG(LOG_ERROR, vc_config_tag(), "[ERROR] Fail to select language");
key_new = xmlNodeGetContent(cur_new);
if (NULL != key_new) {
if (0 != xmlStrcmp(key_old, key_new)) {
- SLOG(LOG_DEBUG, vc_config_tag(), "Old auto lang(%s), New auto lang(%s)", (char*)key_old, (char*)key_new);
+ SLOG(LOG_ERROR, vc_config_tag(), "Old auto lang(%s), New auto lang(%s)", (char*)key_old, (char*)key_new);
if (0 == xmlStrcmp(key_new, (const xmlChar*)"on")) {
*auto_lang = 1;
} else {
key_new = xmlNodeGetContent(cur_new);
if (NULL != key_new) {
if (0 != xmlStrcmp(key_old, key_new)) {
- SLOG(LOG_DEBUG, vc_config_tag(), "Old language(%s), New language(%s)", (char*)key_old, (char*)key_new);
+ SLOG(LOG_ERROR, vc_config_tag(), "Old language(%s), New language(%s)", (char*)key_old, (char*)key_new);
if (NULL != *language) free(*language);
*language = strdup((char*)key_new);
}
key_new = xmlNodeGetContent(cur_new);
if (NULL != key_new) {
if (0 != xmlStrcmp(key_old, key_new)) {
- SLOG(LOG_DEBUG, vc_config_tag(), "Old enabled(%s), New enabled(%s)", (char*)key_old, (char*)key_new);
+ SLOG(LOG_ERROR, vc_config_tag(), "Old enabled(%s), New enabled(%s)", (char*)key_old, (char*)key_new);
if (0 == xmlStrcmp(key_new, (const xmlChar*)"on")) {
*enabled = 1;
} else {
key_new = xmlNodeGetContent(cur_new);
if (NULL != key_new) {
if (0 != xmlStrcmp(key_old, key_new)) {
- SLOG(LOG_DEBUG, vc_config_tag(), "Old engine(%s), New engine(%s)", (char*)key_old, (char*)key_new);
+ SLOG(LOG_ERROR, vc_config_tag(), "Old engine(%s), New engine(%s)", (char*)key_old, (char*)key_new);
if (NULL != *engine) free(*engine);
*engine = strdup((char*)key_new);
}
<?xml version="1.0"?>
<voice-control-config>
<engine>C7AEDE1D-90F7-41ea-9AB4-FD99966D2654</engine>
- <auto>on</auto>
+ <auto>off</auto>
<language>en_US</language>
<enabled>on</enabled>
</voice-control-config>