From 8dbfed5c528f21b20445d6d82228e7d988e799e6 Mon Sep 17 00:00:00 2001 From: Eric Gustin <34000337+EricGustin@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:27:43 -0800 Subject: [PATCH] Fix log that stated the number of tools found in toolkit (#144) The original log was counting the number of files in the toolkit module. This PR fixes this such that it counts the number of tools in the toolkit. --- arcade/arcade/cli/serve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arcade/arcade/cli/serve.py b/arcade/arcade/cli/serve.py index 57ffbd33..cafec64b 100644 --- a/arcade/arcade/cli/serve.py +++ b/arcade/arcade/cli/serve.py @@ -103,7 +103,8 @@ def serve_default_actor( else: logger.info("Serving the following toolkits:") for toolkit in toolkits: - logger.info(f" - {toolkit.name} ({toolkit.package_name}): {len(toolkit.tools)} tools") + num_tools = sum(len(tools) for tools in toolkit.tools.values()) + logger.info(f" - {toolkit.name} ({toolkit.package_name}): {num_tools} tools") actor_secret = os.environ.get("ARCADE_ACTOR_SECRET") if not disable_auth and not actor_secret: