From b09c8477f77962c61b6431508dc3638392d341ca Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Fri, 24 Jul 2020 16:10:04 +0900 Subject: [PATCH] Change the limit of timeout Change-Id: I05144fe9aef767dc443c76aff787c86cdc0662db Signed-off-by: sooyeon.kim --- client/tts.c | 2 +- client/tts_dbus.c | 18 +++++++++--------- common/tts_defs.h | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/tts.c b/client/tts.c index 06c89f0..3305e74 100644 --- a/client/tts.c +++ b/client/tts.c @@ -1671,7 +1671,7 @@ int tts_add_text(tts_h tts, const char* text, const char* language, int voice_ty SLOG(LOG_WARN, TAG_TTSC, "[WARNING] retry add text : %s", __tts_get_error_code(ret)); usleep(10000); count++; - if (TTS_RETRY_MIN_COUNT == count) { + if (TTS_RETRY_COUNT == count) { SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to request"); break; } diff --git a/client/tts_dbus.c b/client/tts_dbus.c index 49edc82..9aa09f4 100644 --- a/client/tts_dbus.c +++ b/client/tts_dbus.c @@ -151,7 +151,7 @@ static Eina_Bool listener_event_callback(void* data, Ecore_Fd_Handler *fd_handle SLOG(LOG_ERROR, TAG_TTSC, "@@ tts Get Hello message : Get arguments error (%s)", err.message); dbus_error_free(&err); } else { - SLOG(LOG_DEBUG, TAG_TTSC, "@@ tts Get Hello message : uid(%d), credential_needed(%d)", uid, credential_needed); + SLOG(LOG_ERROR, TAG_TTSC, "@@ tts Get Hello message : uid(%d), credential_needed(%d)", uid, credential_needed); __tts_dbus_add_match(uid); __tts_cb_hello(uid, ret, credential_needed); } @@ -532,7 +532,7 @@ int tts_dbus_request_initialize(int uid, bool* credential_needed) SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts initialize : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts initialize : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts initialize : uid(%d)", uid); } int pid = getpid(); @@ -711,7 +711,7 @@ int tts_dbus_request_add_text(int uid, const char* text, const char* lang, int v SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts add text : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts add text : uid(%d), text(%s), lang(%s), type(%d), speed(%d), id(%d), credential(%s)", + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts add text : uid(%d), text(%s), lang(%s), type(%d), speed(%d), id(%d), credential(%s)", uid, text, lang, vctype, speed, uttid, (NULL == credential) ? "NULL" : credential); } @@ -931,7 +931,7 @@ int tts_dbus_request_play(int uid, const char* credential) SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts play : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts play : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts play : uid(%d)", uid); } char *temp = NULL; @@ -1007,7 +1007,7 @@ int tts_dbus_request_stop(int uid) SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts stop : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts stop : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts stop : uid(%d)", uid); } DBusMessage* result_msg; @@ -1065,7 +1065,7 @@ int tts_dbus_request_pause(int uid) SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts pause : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts pause : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts pause : uid(%d)", uid); } DBusMessage* result_msg; @@ -1124,7 +1124,7 @@ int tts_dbus_request_play_pcm(int uid) SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts play pcm : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts play pcm : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts play pcm : uid(%d)", uid); } if (true != dbus_message_append_args(msg, @@ -1183,7 +1183,7 @@ int tts_dbus_request_stop_pcm(int uid) SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts stop pcm : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts stop pcm : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts stop pcm : uid(%d)", uid); } if (true != dbus_message_append_args(msg, @@ -1242,7 +1242,7 @@ int tts_dbus_request_add_pcm(int uid, int event, const char* data, int data_size SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts add pcm : Fail to make message"); return TTS_ERROR_OPERATION_FAILED; } else { - SLOG(LOG_DEBUG, TAG_TTSC, ">>>> Request tts add pcm : uid(%d)", uid); + SLOG(LOG_ERROR, TAG_TTSC, ">>>> Request tts add pcm : uid(%d)", uid); } if (true != dbus_message_append_args(msg, diff --git a/common/tts_defs.h b/common/tts_defs.h index 11e981a..fb04af6 100644 --- a/common/tts_defs.h +++ b/common/tts_defs.h @@ -94,7 +94,7 @@ extern "C" { #define TTS_BASE_LANGUAGE "en_US" -#define TTS_RETRY_COUNT 5 +#define TTS_RETRY_COUNT 7 #define TTS_RETRY_MIN_COUNT 2 #define TTS_CONNECTION_RETRY_COUNT 10 #define TTS_HELLO_RETRY_COUNT 40 // 500 ms * 40 = 20 sec -- 2.7.4