From de393f0844a1a03fc2c7dd90468e142a561aedc8 Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Thu, 29 Aug 2024 12:52:31 +0000 Subject: [PATCH] fix: avoid too many exception logs --- .../extension/message_collector/src/extension.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/ten_packages/extension/message_collector/src/extension.py b/agents/ten_packages/extension/message_collector/src/extension.py index e8e903f7..39206a13 100644 --- a/agents/ten_packages/extension/message_collector/src/extension.py +++ b/agents/ten_packages/extension/message_collector/src/extension.py @@ -89,21 +89,21 @@ def on_data(self, ten_env: TenEnv, data: Data) -> None: try: final = data.get_property_bool(TEXT_DATA_FINAL_FIELD) except Exception as e: - logger.exception( + logger.warning( f"on_data get_property_bool {TEXT_DATA_FINAL_FIELD} error: {e}" ) try: stream_id = data.get_property_int(TEXT_DATA_STREAM_ID_FIELD) except Exception as e: - logger.exception( + logger.warning( f"on_data get_property_int {TEXT_DATA_STREAM_ID_FIELD} error: {e}" ) try: end_of_segment = data.get_property_bool(TEXT_DATA_END_OF_SEGMENT_FIELD) except Exception as e: - logger.exception( + logger.warning( f"on_data get_property_bool {TEXT_DATA_END_OF_SEGMENT_FIELD} error: {e}" )