Skip to content

Commit

Permalink
[App] Improve PythonServer info message on startup (#15989)
Browse files Browse the repository at this point in the history
* change msg
* update chgl
* show the user's class name

(cherry picked from commit 848ea56)
  • Loading branch information
akihironitta authored and Borda committed Dec 20, 2022
1 parent da1133d commit 90822bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lightning_app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

### Fixed

- Fixed `PythonServer` messaging "Your app has started" ([#15989](https://github.com/Lightning-AI/lightning/pull/15989))



## [1.8.5] - 2022-12-15

Expand Down
4 changes: 3 additions & 1 deletion src/lightning_app/components/serve/python_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,5 +300,7 @@ def run(self, *args: Any, **kwargs: Any) -> Any:
fastapi_app = FastAPI()
self._attach_predict_fn(fastapi_app)

logger.info(f"Your app has started. View it in your browser: http://{self.host}:{self.port}")
logger.info(
f"Your {self.__class__.__qualname__} has started. View it in your browser: http://{self.host}:{self.port}"
)
uvicorn.run(app=fastapi_app, host=self.host, port=self.port, log_level="error")

0 comments on commit 90822bc

Please sign in to comment.