Skip to content

Commit 848ea56

Browse files
authored
[App] Improve PythonServer info message on startup (#15989)
* change msg * update chgl * show the user's class name
1 parent 085c6b3 commit 848ea56

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/lightning_app/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4747

4848
### Fixed
4949

50+
- Fixed `PythonServer` messaging "Your app has started" ([#15989](https://github.com/Lightning-AI/lightning/pull/15989))
51+
52+
5053
- Fixed `AutoScaler` raising an exception when non-default cloud compute is specified ([#15991](https://github.com/Lightning-AI/lightning/pull/15991))
5154

5255
- Fixed the debugger detection mechanism for lightning App in VSCode ([#16068](https://github.com/Lightning-AI/lightning/pull/16068))

src/lightning_app/components/serve/python_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,5 +300,7 @@ def run(self, *args: Any, **kwargs: Any) -> Any:
300300
fastapi_app = FastAPI()
301301
self._attach_predict_fn(fastapi_app)
302302

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

0 commit comments

Comments
 (0)