From 77fca34ad8e1ea024acfa6e727071b2003ecb69f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 30 Oct 2023 05:58:31 +0100 Subject: [PATCH] Core: limit perf logger to 4 post-point places --- worlds/AutoWorld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index 3e6e60c6f0ba..87c185594be8 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -113,10 +113,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