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.
This commit is contained in:
parent
b22e3198a7
commit
8dbfed5c52
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue