Fix log level of 'vcdb' and 'vcd' logs 23/107023/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 26 Dec 2016 07:01:46 +0000 (16:01 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 26 Dec 2016 07:41:12 +0000 (16:41 +0900)
Change-Id: I4cdee201d254a3bb3f38c704c6a54c68b13ecf5f
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/vc_cmd_db.c
server/vcd_recorder.c

index 7696982..16ca81d 100644 (file)
@@ -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);
        }
index 5ad08b5..160ecec 100644 (file)
@@ -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);