From 790bfa7cbbb97170c589dc78368f8bed8aaa18f1 Mon Sep 17 00:00:00 2001 From: Jay Zhang Date: Fri, 30 Aug 2024 00:08:48 +0800 Subject: [PATCH] fix: avoid too many exception logs (#262) --- .../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}" )