From: Wonnam Jang Date: Mon, 5 Dec 2016 10:26:12 +0000 (+0900) Subject: Change log level from error to info X-Git-Tag: accepted/tizen/common/20161212.185435^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F102329%2F2;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Change log level from error to info Change-Id: Ifaef2e1679d4085f51949608447d70d1e80a4f00 Signed-off-by: Wonnam Jang --- diff --git a/client/vc.c b/client/vc.c index 537c336..fafc574 100644 --- a/client/vc.c +++ b/client/vc.c @@ -427,6 +427,7 @@ int vc_deinitialize(void) if (NULL != g_connect_timer) { SLOG(LOG_DEBUG, TAG_VCC, "Connect Timer is deleted"); ecore_timer_del(g_connect_timer); + g_connect_timer = NULL; } vc_config_mgr_unset_lang_cb(g_vc->handle); @@ -470,6 +471,8 @@ static Eina_Bool __vc_connect_daemon(void *data) int mgr_pid = -1; int service_state = 0; + g_connect_timer = NULL; + ret = vc_cmd_parser_delete_file(getpid(), VC_COMMAND_TYPE_FOREGROUND); if (0 != ret) SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to delete file, type(%d), ret(%d)", VC_COMMAND_TYPE_FOREGROUND, ret); @@ -501,8 +504,6 @@ static Eina_Bool __vc_connect_daemon(void *data) /* Set service state */ vc_client_set_service_state(g_vc, (vc_service_state_e)service_state); - g_connect_timer = NULL; - g_focus_in_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_IN, __focus_changed_cb, NULL); g_focus_out_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_OUT, __focus_changed_cb, NULL); @@ -716,7 +717,7 @@ int vc_get_state(vc_state_e* state) vc_state_e temp; if (0 != vc_client_get_client_state(g_vc, &temp)) { - SLOG(LOG_ERROR, TAG_VCC, "[ERROR] A handle is not available"); + SLOG(LOG_ERROR, TAG_VCC, "[ERROR] handle is not valid"); SLOG(LOG_DEBUG, TAG_VCC, "====="); SLOG(LOG_DEBUG, TAG_VCC, " "); return VC_ERROR_INVALID_STATE; diff --git a/client/vc_mgr.c b/client/vc_mgr.c index 4dfe493..7143a67 100644 --- a/client/vc_mgr.c +++ b/client/vc_mgr.c @@ -213,6 +213,7 @@ int vc_mgr_deinitialize() if (NULL != g_m_connect_timer) { SLOG(LOG_DEBUG, TAG_VCM, "Connect Timer is deleted"); ecore_timer_del(g_m_connect_timer); + g_m_connect_timer = NULL; } vc_config_mgr_unset_lang_cb(g_vc_m->handle + VC_MANAGER_CONFIG_HANDLE); diff --git a/client/vc_widget.c b/client/vc_widget.c index e8195f6..a8b1357 100644 --- a/client/vc_widget.c +++ b/client/vc_widget.c @@ -204,6 +204,7 @@ int vc_widget_deinitialize() if (NULL != g_w_connect_timer) { SLOG(LOG_DEBUG, TAG_VCW, "Connect Timer is deleted"); ecore_timer_del(g_w_connect_timer); + g_w_connect_timer = NULL; } vc_config_mgr_unset_lang_cb(g_vc_w->handle + VC_WIDGET_CONFIG_HANDLE); @@ -270,6 +271,8 @@ static Eina_Bool __vc_widget_connect_daemon(void *data) SLOG(LOG_DEBUG, TAG_VCW, "===== [Widget] Connect daemon"); + g_w_connect_timer = NULL; + /* request initialization */ int ret = -1; int service_state = 0; @@ -316,8 +319,6 @@ static Eina_Bool __vc_widget_connect_daemon(void *data) vc_widget_client_set_state(g_vc_w, VC_STATE_READY); ecore_timer_add(0, __vc_widget_notify_state_changed, g_vc_w); - g_w_connect_timer = NULL; - SLOG(LOG_DEBUG, TAG_VCW, "====="); SLOG(LOG_DEBUG, TAG_VCW, " "); diff --git a/common/vc_cmd_db.c b/common/vc_cmd_db.c index aa19fc0..5ed395c 100644 --- a/common/vc_cmd_db.c +++ b/common/vc_cmd_db.c @@ -246,8 +246,8 @@ static int __vc_db_insert_commands(int pid, vc_cmd_type_e type, vc_cmd_s* cmd) return VC_DB_ERROR_OPERATION_FAILED; } - SLOG(LOG_ERROR, vc_db_tag(), "[SQL] INSERT INTO vc_info (id, pid(%d), type(%d), format(%d), domain(%d), command(%s)", pid, cmd->type, cmd->format, cmd->domain, cmd->command); - SLOG(LOG_ERROR, vc_db_tag(), "[SQL] ==== appid(%s), invocation(%s), fixed(%s)", cmd->appid, cmd->invocation_name, cmd->fixed); + SLOG(LOG_INFO, vc_db_tag(), "[SQL] INSERT INTO vc_info (id, pid(%d), type(%d), format(%d), domain(%d), command(%s)", pid, cmd->type, cmd->format, cmd->domain, cmd->command); + SLOG(LOG_INFO, vc_db_tag(), "[SQL] ==== appid(%s), invocation(%s), fixed(%s)", cmd->appid, cmd->invocation_name, cmd->fixed); sqlite3_reset(stmt); sqlite3_clear_bindings(stmt); @@ -1061,7 +1061,7 @@ static vc_cmd_s* __vc_db_command_copy(vc_cmd_s* src_cmd) int vc_db_initialize(void) { - SLOG(LOG_ERROR, vc_db_tag(), "DB initialization"); + SLOG(LOG_INFO, vc_db_tag(), "DB initialization"); path = (char*)calloc(256, sizeof(char)); if (NULL == path) {