Skip to content

Commit

Permalink
fix: avoid too many exception logs (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 authored Aug 29, 2024
1 parent 09fdef1 commit 790bfa7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)

Expand Down

0 comments on commit 790bfa7

Please sign in to comment.