Make API URLs more visible

This commit is contained in:
oobabooga 2023-10-21 21:11:07 -07:00
parent 09f807af83
commit 1a34927314
2 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ def _run_server(port: int, share: bool = False, tunnel_id=str):
def on_start(public_url: str):
public_url = public_url.replace('https://', 'wss://')
logger.info(f'Starting streaming server at public url {public_url}{PATH}')
logger.info(f'Streaming API URL: \n\n{public_url}{PATH}\n')
if share:
try:
@ -131,9 +131,9 @@ def _run_server(port: int, share: bool = False, tunnel_id=str):
print(e)
else:
if ssl_verify:
logger.info(f'Starting streaming server at wss://{address}:{port}{PATH}')
logger.info(f'Streaming API URL: \n\nwss://{address}:{port}{PATH}\n')
else:
logger.info(f'Starting streaming server at ws://{address}:{port}{PATH}')
logger.info(f'Streaming API URL: \n\nws://{address}:{port}{PATH}\n')
asyncio.run(_run(host=address, port=port))