Skip to content

Commit

Permalink
Log length of timed out statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jstray committed Oct 25, 2024
1 parent 6eed21d commit 30d28f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perspective_ranker.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async def score(self, attributes, statement, statement_id):
except asyncio.TimeoutError:
scoring_timeouts.inc()
logger.warning(
f"Timeout ({SCORING_TIMEOUT}s) scoring statement_id {statement_id}"
f"Timeout ({SCORING_TIMEOUT}s) scoring statement_id {statement_id} lenth {len(statement)}"
)
continue

Expand Down

0 comments on commit 30d28f1

Please sign in to comment.