Merge "Add log to leave string length" into tizen
authorWonnam Jang <wn.jang@samsung.com>
Mon, 2 Mar 2020 04:27:27 +0000 (04:27 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 2 Mar 2020 04:27:27 +0000 (04:27 +0000)
1  2 
client/tts.c

diff --combined client/tts.c
@@@ -1408,7 -1408,7 +1408,7 @@@ int tts_add_text(tts_h tts, const char
        } else {
                SLOG(LOG_DEBUG, TAG_TTSC, "[DEBUG] g_max_text_size is %d", g_max_text_size);
                if (g_max_text_size < strlen(text) || strlen(text) <= 0) {
-                       SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Input text size is invalid.");
+                       SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Input text size is invalid. current text_size(%d)", strlen(text));
                        SLOG(LOG_DEBUG, TAG_TTSC, "@@@");
                        return TTS_ERROR_INVALID_PARAMETER;
                }
@@@ -2368,7 -2368,6 +2368,7 @@@ static Eina_Bool __tts_notify_state_cha
        /* check handle */
        if (NULL == client) {
                SLOG(LOG_WARN, TAG_TTSC, "Fail to notify state changed : A handle is not valid");
 +              g_check_state_timer = NULL;
                return EINA_FALSE;
        }
  
                SLOG(LOG_WARN, TAG_TTSC, "[WARNING] State changed callback is null");
        }
  
 +      g_check_state_timer = NULL;
 +
        return EINA_FALSE;
  }