From f19a9d56a4ee387b5cfe3605919d4365abb1542d Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Tue, 20 Dec 2022 14:36:11 +0900 Subject: [PATCH] [App] Improve PythonServer info message on startup (#15989) * change msg * update chgl * show the user's class name --- src/lightning_app/CHANGELOG.md | 3 +++ src/lightning_app/components/serve/python_server.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lightning_app/CHANGELOG.md b/src/lightning_app/CHANGELOG.md index 0113047b5e7f63..d35857d7ab626d 100644 --- a/src/lightning_app/CHANGELOG.md +++ b/src/lightning_app/CHANGELOG.md @@ -47,6 +47,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)) + + - Fixed `AutoScaler` raising an exception when non-default cloud compute is specified ([#15991](https://github.com/Lightning-AI/lightning/pull/15991)) - Fixed the debugger detection mechanism for lightning App in VSCode ([#16068](https://github.com/Lightning-AI/lightning/pull/16068)) diff --git a/src/lightning_app/components/serve/python_server.py b/src/lightning_app/components/serve/python_server.py index ee958b30625fd6..6b7322c58cd83d 100644 --- a/src/lightning_app/components/serve/python_server.py +++ b/src/lightning_app/components/serve/python_server.py @@ -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")