From 52bd3a9af71784c7074e3909af670d11cbaaebd7 Mon Sep 17 00:00:00 2001 From: jerick Date: Wed, 28 Jan 2026 16:17:21 -0500 Subject: [PATCH] debugging --- services/torn_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/torn_api.py b/services/torn_api.py index 9d69d81..1f778b8 100644 --- a/services/torn_api.py +++ b/services/torn_api.py @@ -21,7 +21,9 @@ async def populate_faction(faction_id: int, kind: str): #Fetch members + FFScouter estimates once and store in STATE. #kind: "friendly" or "enemy" - url = f"https://api.torn.com/v2/faction/{faction_id}?selections=members&key={config.TORN_API_KEY}" + api_key = config.TORN_API_KEY + print(f"[DEBUG] Using TORN_API_KEY: {api_key[:4]}...{api_key[-4:] if len(api_key) > 8 else '****'}") + url = f"https://api.torn.com/v2/faction/{faction_id}?selections=members&key={api_key}" try: async with aiohttp.ClientSession() as session: