Skip to content

Commit db47af2

Browse files
authored
Merge pull request #20924 from wordpress-mobile/issue/v2c-transcription-error-logs
[Voice to Content] Capture transcription error logs
2 parents ec01193 + 2de0177 commit db47af2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 6 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,11 @@ class VoiceToContentUseCase @Inject constructor(
3536
transcriptionResponse.model
3637
}
3738
is JetpackAITranscriptionResponse.Error -> {
39+
val message = "${transcriptionResponse.type} ${transcriptionResponse.message}"
40+
Log.i(
41+
javaClass.simpleName,
42+
"Error transcribing audio file: $message"
43+
)
3844
null
3945
}
4046
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ext {
2525
automatticTracksVersion = '5.0.0'
2626
gutenbergMobileVersion = 'v1.120.0-alpha1'
2727
wordPressAztecVersion = 'v2.1.3'
28-
wordPressFluxCVersion = 'trunk-a9a471914d3ebd1093986d3d0a95c2a29b29dca0'
28+
wordPressFluxCVersion = 'trunk-8b7eeade00f33c5b4296722fb3854b3a32e06ad8'
2929
wordPressLoginVersion = '1.15.0'
3030
wordPressPersistentEditTextVersion = '1.0.2'
3131
wordPressUtilsVersion = '3.14.0'

0 commit comments

Comments
 (0)