Add a log to get info when an error occurred when recording / playing voice message
Will help debugging issues like #3904
This commit is contained in:
parent
f91936b413
commit
06fcee3c46
@ -60,6 +60,7 @@ class VoiceMessageHelper @Inject constructor(
|
|||||||
try {
|
try {
|
||||||
voiceRecorder.startRecord()
|
voiceRecorder.startRecord()
|
||||||
} catch (failure: Throwable) {
|
} catch (failure: Throwable) {
|
||||||
|
Timber.e(failure, "Unable to start recording")
|
||||||
throw VoiceFailure.UnableToRecord(failure)
|
throw VoiceFailure.UnableToRecord(failure)
|
||||||
}
|
}
|
||||||
startRecordingAmplitudes()
|
startRecordingAmplitudes()
|
||||||
@ -146,6 +147,7 @@ class VoiceMessageHelper @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (failure: Throwable) {
|
} catch (failure: Throwable) {
|
||||||
|
Timber.e(failure, "Unable to start playback")
|
||||||
throw VoiceFailure.UnableToPlay(failure)
|
throw VoiceFailure.UnableToPlay(failure)
|
||||||
}
|
}
|
||||||
startPlaybackTicker(id)
|
startPlaybackTicker(id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user