Mirrowel commited on
Commit
4ecfaba
Β·
1 Parent(s): d76b29a

refactor(proxy): πŸ”¨ remove debug print statement for credentials

Browse files

The debug print statement that was logging credential summaries to the console has been commented out. This removes unnecessary console output in the proxy application while keeping the credential loading logic intact.

Files changed (1) hide show
  1. src/proxy_app/main.py +4 -4
src/proxy_app/main.py CHANGED
@@ -500,10 +500,10 @@ async def lifespan(app: FastAPI):
500
  )
501
 
502
  # Log loaded credentials summary (compact, always visible for deployment verification)
503
- _api_summary = ', '.join([f"{p}:{len(c)}" for p, c in api_keys.items()]) if api_keys else "none"
504
- _oauth_summary = ', '.join([f"{p}:{len(c)}" for p, c in oauth_credentials.items()]) if oauth_credentials else "none"
505
- _total_summary = ', '.join([f"{p}:{len(c)}" for p, c in client.all_credentials.items()])
506
- print(f"πŸ”‘ Credentials loaded: {_total_summary} (API: {_api_summary} | OAuth: {_oauth_summary})")
507
  client.background_refresher.start() # Start the background task
508
  app.state.rotating_client = client
509
 
 
500
  )
501
 
502
  # Log loaded credentials summary (compact, always visible for deployment verification)
503
+ #_api_summary = ', '.join([f"{p}:{len(c)}" for p, c in api_keys.items()]) if api_keys else "none"
504
+ #_oauth_summary = ', '.join([f"{p}:{len(c)}" for p, c in oauth_credentials.items()]) if oauth_credentials else "none"
505
+ #_total_summary = ', '.join([f"{p}:{len(c)}" for p, c in client.all_credentials.items()])
506
+ #print(f"πŸ”‘ Credentials loaded: {_total_summary} (API: {_api_summary} | OAuth: {_oauth_summary})")
507
  client.background_refresher.start() # Start the background task
508
  app.state.rotating_client = client
509