Skip to content

Commit

Permalink
use clear_result in logs instead of undefined meta_result
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaan Meralan committed Nov 4, 2024
1 parent 433e6f2 commit 12b304f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepgram/clients/speak/v1/websocket/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ async def _process_text(self, message: Union[str, bytes]) -> None:
)
case SpeakWebSocketEvents.Cleared:
clear_result: ClearedResponse = ClearedResponse.from_json(message)
self._logger.verbose("ClearedResponse: %s", meta_result)
self._logger.verbose("ClearedResponse: %s", clear_result)
await self._emit(
SpeakWebSocketEvents(SpeakWebSocketEvents.Cleared),
cleared=clear_result,
Expand Down
2 changes: 1 addition & 1 deletion deepgram/clients/speak/v1/websocket/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _process_text(self, message: str) -> None:
)
case SpeakWebSocketEvents.Cleared:
clear_result: ClearedResponse = ClearedResponse.from_json(message)
self._logger.verbose("ClearedResponse: %s", meta_result)
self._logger.verbose("ClearedResponse: %s", clear_result)
self._emit(
SpeakWebSocketEvents(SpeakWebSocketEvents.Cleared),
cleared=clear_result,
Expand Down

0 comments on commit 12b304f

Please sign in to comment.