From: Suyeon Hwang Date: Mon, 26 Dec 2016 07:01:46 +0000 (+0900) Subject: Fix log level of 'vcdb' and 'vcd' logs X-Git-Tag: accepted/tizen/common/20170117.174615~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0af39d5e482d9cf06f2993426b4e37a5fb0533c;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Fix log level of 'vcdb' and 'vcd' logs Change-Id: I4cdee201d254a3bb3f38c704c6a54c68b13ecf5f Signed-off-by: Suyeon Hwang --- diff --git a/common/vc_cmd_db.c b/common/vc_cmd_db.c index 7696982..16ca81d 100644 --- a/common/vc_cmd_db.c +++ b/common/vc_cmd_db.c @@ -377,7 +377,7 @@ static int __vc_db_get_commands(int pid, vc_cmd_type_e type, GSList** cmd_list) if (type == temp_cmd->type) { *cmd_list = g_slist_append(*cmd_list, temp_cmd); } else { - SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Command type(%d) is NOT valid : request type(%d)", temp_cmd->type, type); + SLOG(LOG_WARN, vc_db_tag(), "[WARNING] Command type(%d) is NOT valid : request type(%d)", temp_cmd->type, type); } ret = sqlite3_step(stmt); if (SQLITE_DONE == ret) @@ -1487,7 +1487,7 @@ int vc_db_insert_commands_list(int pid, vc_cmd_type_e type, GSList* cmd_list, ch return ret; } } else { - SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Command type(%d) is NOT valid : request type(%d)", temp_cmd->type, type); + SLOG(LOG_WARN, vc_db_tag(), "[WARNING] Command type(%d) is NOT valid : request type(%d)", temp_cmd->type, type); } iter = g_slist_next(iter); } diff --git a/server/vcd_recorder.c b/server/vcd_recorder.c index 5ad08b5..160ecec 100644 --- a/server/vcd_recorder.c +++ b/server/vcd_recorder.c @@ -580,12 +580,12 @@ int vcd_recorder_start() int ret = -1; g_buffer_count = 0; - SLOG(LOG_ERROR, TAG_VCD, "[Recorder] Enter, recorder state(%d)", g_recorder_state); + SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Enter, recorder state(%d)", g_recorder_state); if (VCD_RECORDER_STATE_RECORDING == g_recorder_state) return 0; bool started = false; - SLOG(LOG_ERROR, TAG_VCD, "[Recorder] audio type : %s", g_current_audio_type); + SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] audio type : %s", g_current_audio_type); if (NULL != g_current_audio_type) { if (0 == strncmp(VCP_AUDIO_ID_BLUETOOTH, g_current_audio_type, strlen(VCP_AUDIO_ID_BLUETOOTH))) { @@ -614,7 +614,7 @@ int vcd_recorder_start() g_bt_extend_count = 0; #endif } else if (0 == strncmp(VCP_AUDIO_ID_MSF, g_current_audio_type, strlen(VCP_AUDIO_ID_MSF))) { - SLOG(LOG_ERROR, TAG_VCD, "[Recorder] call RegisterMSFAudioCallback() function"); + SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] call RegisterMSFAudioCallback() function"); #ifdef TV_MSF_WIFI_MODE ret = RegisterMSFAudioCallback(__msf_wifi_audio_data_receive_cb, NULL); @@ -629,7 +629,7 @@ int vcd_recorder_start() } } - SLOG(LOG_ERROR, TAG_VCD, "[Recorder] started = %d", started); + SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] started = %d", started); if (false == started) { #if 0 ret = sound_manager_acquire_focus(g_stream_info_h, SOUND_STREAM_FOCUS_FOR_RECORDING, NULL);