From: Ji-hoon Lee Date: Fri, 29 Oct 2021 04:46:11 +0000 (+0900) Subject: Add more log messages to the ERROR level group X-Git-Tag: submit/tizen/20211029.093841^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2808d28b7a1e938aabda4c3a7fb239749d4e8c8e;p=platform%2Fcore%2Fuifw%2Fmulti-assistant.git Add more log messages to the ERROR level group Change-Id: I00aa322c81c820913dde453dda0f4e2b19143e50 --- diff --git a/client/ma.c b/client/ma.c index 68e723e..4fe876d 100644 --- a/client/ma.c +++ b/client/ma.c @@ -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(); diff --git a/client/ma_ap_dbus.c b/client/ma_ap_dbus.c index 716484f..0cc8e03 100644 --- a/client/ma_ap_dbus.c +++ b/client/ma_ap_dbus.c @@ -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) { diff --git a/client/ma_dbus.c b/client/ma_dbus.c index 3a83fc7..ff58316 100644 --- a/client/ma_dbus.c +++ b/client/ma_dbus.c @@ -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) {