Skip to content

Commit 94be232

Browse files
author
jstray
committed
For some reason logging wasn't replacing format string with double quotes, idk
1 parent 984fa06 commit 94be232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

perspective_ranker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ async def main(ranking_request: RankingRequest) -> RankingResponse:
312312
results = await ranker.rank(ranking_request)
313313

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

318318
# Record metrics
319319
rank_calls.inc()

0 commit comments

Comments
 (0)