Skip to content

Commit 8ac3b6d

Browse files
committed
Add log line for transcription error while building out the feature
1 parent ec01193 commit 8ac3b6d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

WordPress/src/main/java/org/wordpress/android/ui/voicetocontent/VoiceToContentUseCase.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.wordpress.android.ui.voicetocontent
22

3+
import android.util.Log
34
import kotlinx.coroutines.Dispatchers
45
import kotlinx.coroutines.withContext
56
import org.wordpress.android.fluxc.model.SiteModel
@@ -35,6 +36,7 @@ class VoiceToContentUseCase @Inject constructor(
3536
transcriptionResponse.model
3637
}
3738
is JetpackAITranscriptionResponse.Error -> {
39+
Log.i(javaClass.simpleName, "Error transcribing audio file: ${transcriptionResponse.type} ${transcriptionResponse.message}")
3840
null
3941
}
4042
}

0 commit comments

Comments
 (0)