added debugging for URL

This commit is contained in:
michael 2025-10-28 10:58:00 -05:00
parent 7d74ede2ab
commit a72c9be0e2

View file

@ -275,6 +275,13 @@ def main():
for idx, agent in enumerate(agents, start=1):
payload = build_payload(agent)
# Debug: Print URL for each agent
agent_name = payload.get('name', 'Unknown')
agent_url = payload.get('url', 'NO URL')
print(f"\n[DEBUG {idx}/{len(agents)}] Agent: {agent_name}")
print(f"[DEBUG] URL: {agent_url}")
if args.dry_run:
print(f"[DRY RUN {idx}/{len(agents)}] Would register: {payload.get('name')}")
print(json.dumps(payload, indent=2, ensure_ascii=False))