Skip to content

Commit

Permalink
print endpoint in the log
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta committed Dec 15, 2022
1 parent eaa845e commit d6526ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lightning_app/components/auto_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ async def balance_api(inputs: self._input_type):
"/endpoint-info", StaticFiles(directory=endpoint_info_page.serve_dir, html=True), name="static"
)

logger.info(f"Your load balancer has started. The endpoint is 'http://{self.host}:{self.port}{self.endpoint}'")

uvicorn.run(
fastapi_app,
host=self.host,
Expand Down

0 comments on commit d6526ce

Please sign in to comment.