Skip to content

Commit

Permalink
Core: limit perf logger to 4 post-point places (#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored Nov 13, 2023
1 parent b3a9d58 commit f63743f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/AutoWorld.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def _timed_call(method: Callable[..., Any], *args: Any,
taken = time.perf_counter() - start
if taken > 1.0:
if player and multiworld:
perf_logger.info(f"Took {taken} seconds in {method.__qualname__} for player {player}, "
perf_logger.info(f"Took {taken:.4f} seconds in {method.__qualname__} for player {player}, "
f"named {multiworld.player_name[player]}.")
else:
perf_logger.info(f"Took {taken} seconds in {method.__qualname__}.")
perf_logger.info(f"Took {taken:.4f} seconds in {method.__qualname__}.")
return ret


Expand Down

0 comments on commit f63743f

Please sign in to comment.