Add more log messages to the ERROR level group 19/265819/1 accepted/tizen/unified/20211101.140222 submit/tizen/20211029.093841
authorJi-hoon Lee <dalton.lee@samsung.com>
Fri, 29 Oct 2021 04:46:11 +0000 (13:46 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 29 Oct 2021 04:46:11 +0000 (13:46 +0900)
Change-Id: I00aa322c81c820913dde453dda0f4e2b19143e50

client/ma.c
client/ma_ap_dbus.c
client/ma_dbus.c

index 68e723e7879c2cf3b1d9c7baf0a40697b59f3009..4fe876df70724886cc84b6e36ae26a6c11061dab 100644 (file)
@@ -205,7 +205,7 @@ int ma_initialize(void)
                return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
-       MA_SLOGI("[Client DEBUG] Initialize"); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Initialize"); //LCOV_EXCL_LINE
 
        /* check handle */
        if (true == ma_client_is_valid(g_ma)) {
@@ -266,7 +266,7 @@ int ma_deinitialize(void)
                return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
-       MA_SLOGI("[Client DEBUG] Deinitialize"); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Deinitialize"); //LCOV_EXCL_LINE
 
        if (false == ma_client_is_valid(g_ma)) {
                MA_SLOGE("[ERROR] NOT initialized"); //LCOV_EXCL_LINE
@@ -391,7 +391,7 @@ static Eina_Bool retry_connection(void* data)
        MA_SLOGI("[ENTER]"); //LCOV_EXCL_LINE
        int ret = ma_dbus_request_hello();
        if (ret == 0) {
-               MA_SLOGI("Success to request hello. retry count(%d)", g_retry_connection_count); //LCOV_EXCL_LINE
+               MA_SLOGE("Success to request hello. retry count(%d)", g_retry_connection_count); //LCOV_EXCL_LINE
                g_retry_connection_count = 0;
                if (g_retry_connection_timer) ecore_timer_del(g_retry_connection_timer);
                g_retry_connection_timer = NULL;
@@ -406,7 +406,7 @@ static Eina_Bool retry_connection(void* data)
                        }
                        ret = __ma_connect_daemon(NULL);
                        if (ret == 0) {
-                               MA_SLOGD("Success to connect daemon. retry count(%d)", retry_count); //LCOV_EXCL_LINE
+                               MA_SLOGE("Success to connect daemon. retry count(%d)", retry_count); //LCOV_EXCL_LINE
                                break;
                        } else {
                                usleep(10000);
@@ -457,7 +457,7 @@ int ma_prepare(void)
                return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
-       MA_SLOGI("[Client DEBUG] Prepare"); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Prepare"); //LCOV_EXCL_LINE
 
        ma_state_e state;
 
@@ -488,7 +488,7 @@ int ma_unprepare(void)
                return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
-       MA_SLOGI("[Client DEBUG] Unprepare"); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Unprepare"); //LCOV_EXCL_LINE
 
        MA_SLOGD("Deleting timer for retry_connection"); //LCOV_EXCL_LINE
        ecore_main_loop_thread_safe_call_async(delete_retry_connection_timer, NULL);
@@ -685,7 +685,7 @@ int __ma_cb_audio_streaming(int event, char* buffer, int len)
                ma_client_not_use_callback(g_ma);
                if (last_event != event) {
                        last_event = event;
-                       MA_SLOGI("[INFO] Audio streaming callback is called, event(%d)", event); //LCOV_EXCL_LINE
+                       MA_SLOGE("[INFO] Audio streaming callback is called, event(%d)", event); //LCOV_EXCL_LINE
                }
        } else {
                MA_SLOGD("[WARNING] Audio streaming callback is NULL"); //LCOV_EXCL_LINE
@@ -1423,7 +1423,7 @@ int ma_send_recognition_result(ma_recognition_result_event_e result)
                return MA_ERROR_INVALID_STATE;
        }
 
-       MA_SLOGI("[Client DEBUG] Send recognition result to the Multi-assistant : %d", result); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Send recognition result to the Multi-assistant : %d", result); //LCOV_EXCL_LINE
 
        int ret = -1;
        int pid = getpid();
@@ -1516,7 +1516,7 @@ int ma_start_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
                return MA_ERROR_INVALID_STATE;
        }
 
-       MA_SLOGI("[Client DEBUG] Send streaming request to the Multi-assistant : %d", type); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Send streaming request to the Multi-assistant : %d", type); //LCOV_EXCL_LINE
 
 #ifdef MA_PREPROCESSING_SEQUENTIAL_MODE
        ma_client_set_audio_streaming_data_type(g_ma, type);
@@ -1557,7 +1557,7 @@ int ma_stop_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
                return MA_ERROR_INVALID_STATE;
        }
 
-       MA_SLOGI("[Client DEBUG] Send streaming stop request to the Multi-assistant : %d", type); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Send streaming stop request to the Multi-assistant : %d", type); //LCOV_EXCL_LINE
 
        int ret = -1;
        int pid = getpid();
@@ -1871,7 +1871,7 @@ int ma_set_background_volume(double ratio)
                return MA_ERROR_INVALID_STATE;
        }
 
-       MA_SLOGI("[Client DEBUG] Set background volume : %f", ratio); //LCOV_EXCL_LINE
+       MA_SLOGE("[Client DEBUG] Set background volume : %f", ratio); //LCOV_EXCL_LINE
 
        /* change system volume */
        int pid = getpid();
index 716484f4862703e13a8ec87751e7e4a3aeb5fde0..0cc8e03ad6c492277b0384e38087c373acd7d401 100644 (file)
@@ -98,8 +98,8 @@ static void message_port_cb(int local_port_id,
                                        __ma_ap_cb_audio_streaming(audio_data_header.event,
                                                pending_buffer + sizeof(streaming_data_header) + sizeof(streaming_data_audio_data_header),
                                                audio_data_header.data_size);
-                                       if (0 == header.streaming_data_serial % 50) {
-                                               MA_SLOGI("__ma_ap_cb_audio_streaming() called, serial : %d", header.streaming_data_serial);
+                                       if (0 == header.streaming_data_serial % 50 || MA_AUDIO_STREAMING_EVENT_FINISH == audio_data_header.event) {
+                                               MA_SLOGE("__ma_ap_cb_audio_streaming() called, serial : %d", header.streaming_data_serial);
                                        }
                                }
                        } else if (streaming_data_type_streaming_section == header.streaming_data_type) {
index 3a83fc7f4c0faccf10203d74c5d42ab521b7d85f..ff58316d83a901a45ed155a6d3ab59e9e8f4a422 100644 (file)
@@ -113,8 +113,8 @@ static void message_port_cb(int local_port_id,
                                        __ma_cb_audio_streaming(audio_data_header.event,
                                                pending_buffer + sizeof(streaming_data_header) + sizeof(streaming_data_audio_data_header),
                                                audio_data_header.data_size);
-                                       if (0 == header.streaming_data_serial % 50) {
-                                               MA_SLOGI("__ma_cb_audio_streaming() called, serial : %d", header.streaming_data_serial); //LCOV_EXCL_LINE
+                                       if (0 == header.streaming_data_serial % 50 || MA_AUDIO_STREAMING_EVENT_FINISH == audio_data_header.event) {
+                                               MA_SLOGE("__ma_cb_audio_streaming() called, serial : %d", header.streaming_data_serial); //LCOV_EXCL_LINE
                                        }
                                }
                        } else if (streaming_data_type_streaming_section == header.streaming_data_type) {