From 3dde59c4a6002973d081aca48dcdf96309eed5e9 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 16 Feb 2023 16:45:37 +0800 Subject: [PATCH] Clean up logging of API errors --- packages/text-to-speech/src/realisticTextToSpeech.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/text-to-speech/src/realisticTextToSpeech.ts b/packages/text-to-speech/src/realisticTextToSpeech.ts index 051921327..9a14f36cd 100644 --- a/packages/text-to-speech/src/realisticTextToSpeech.ts +++ b/packages/text-to-speech/src/realisticTextToSpeech.ts @@ -54,8 +54,6 @@ export class RealisticTextToSpeech implements TextToSpeech { } const requestUrl = `${apiEndpoint}${voiceId}` - console.log('using voice id', voiceId, requestUrl) - const response = await axios.post( requestUrl, { @@ -68,6 +66,7 @@ export class RealisticTextToSpeech implements TextToSpeech { ) if (response.data.length === 0) { + console.log('No payload returned: ', response) throw new Error('No payload returned') }