Skip to content

Commit a840467

Browse files
Merge pull request #479 from meralan/fix_undefined_variable_access
use clear_result in logs instead of undefined meta_result
2 parents 433e6f2 + 12b304f commit a840467

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deepgram/clients/speak/v1/websocket/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ async def _process_text(self, message: Union[str, bytes]) -> None:
328328
)
329329
case SpeakWebSocketEvents.Cleared:
330330
clear_result: ClearedResponse = ClearedResponse.from_json(message)
331-
self._logger.verbose("ClearedResponse: %s", meta_result)
331+
self._logger.verbose("ClearedResponse: %s", clear_result)
332332
await self._emit(
333333
SpeakWebSocketEvents(SpeakWebSocketEvents.Cleared),
334334
cleared=clear_result,

deepgram/clients/speak/v1/websocket/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def _process_text(self, message: str) -> None:
326326
)
327327
case SpeakWebSocketEvents.Cleared:
328328
clear_result: ClearedResponse = ClearedResponse.from_json(message)
329-
self._logger.verbose("ClearedResponse: %s", meta_result)
329+
self._logger.verbose("ClearedResponse: %s", clear_result)
330330
self._emit(
331331
SpeakWebSocketEvents(SpeakWebSocketEvents.Cleared),
332332
cleared=clear_result,

0 commit comments

Comments
 (0)