Change log level from error to info 29/102329/2
authorWonnam Jang <wn.jang@samsung.com>
Mon, 5 Dec 2016 10:26:12 +0000 (19:26 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Mon, 5 Dec 2016 10:26:40 +0000 (02:26 -0800)
Change-Id: Ifaef2e1679d4085f51949608447d70d1e80a4f00
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
client/vc.c
client/vc_mgr.c
client/vc_widget.c
common/vc_cmd_db.c

index 537c336..fafc574 100644 (file)
@@ -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;
index 4dfe493..7143a67 100644 (file)
@@ -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);
index e8195f6..a8b1357 100644 (file)
@@ -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, "  ");
 
index aa19fc0..5ed395c 100644 (file)
@@ -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) {