From 549862ef9944a2e36a800fcb624d0c4606f8130b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 18 Mar 2024 10:47:20 -0700 Subject: [PATCH] daily: log transcription errors --- src/dailyai/services/daily_transport_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dailyai/services/daily_transport_service.py b/src/dailyai/services/daily_transport_service.py index 2353c2678..94c0078f5 100644 --- a/src/dailyai/services/daily_transport_service.py +++ b/src/dailyai/services/daily_transport_service.py @@ -268,11 +268,11 @@ def on_transcription_message(self, message: dict): frame = TranscriptionQueueFrame(message["text"], participantId, message["timestamp"]) asyncio.run_coroutine_threadsafe(self.receive_queue.put(frame), self._loop) - def on_transcription_stopped(self, stopped_by, stopped_by_error): - pass - def on_transcription_error(self, message): - pass + self._logger.error(f"Transcription error: {message}") def on_transcription_started(self, status): pass + + def on_transcription_stopped(self, stopped_by, stopped_by_error): + pass