From 90822bc13d07e76bce7ce83b8fd591d62f395a13 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Tue, 20 Dec 2022 06:36:11 +0100 Subject: [PATCH] [App] Improve PythonServer info message on startup (#15989) * change msg * update chgl * show the user's class name (cherry picked from commit 848ea56f6aef9ea3d688e7e85d02497a473f0f4c) --- 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 0d954d1bf59d1..5380cf5e59bb6 100644 --- a/src/lightning_app/CHANGELOG.md +++ b/src/lightning_app/CHANGELOG.md @@ -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 diff --git a/src/lightning_app/components/serve/python_server.py b/src/lightning_app/components/serve/python_server.py index ee958b30625fd..6b7322c58cd83 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")