Skip to content

Commit

Permalink
For some reason logging wasn't replacing format string with double qu…
Browse files Browse the repository at this point in the history
…otes, idk
  • Loading branch information
jstray committed Sep 3, 2024
1 parent 984fa06 commit 94be232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perspective_ranker.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ async def main(ranking_request: RankingRequest) -> RankingResponse:
results = await ranker.rank(ranking_request)

latency = time.time() - start_time
logger.debug(f"ranking results: {results}")
logger.info(f"ranking {len(results["ranked_ids"])} items took time: {latency}")
logger.debug(f'ranking results: {results}')
logger.info(f'ranking {len(results["ranked_ids"])} items took time: {latency}')

# Record metrics
rank_calls.inc()
Expand Down

0 comments on commit 94be232

Please sign in to comment.