Move server ready message to lifespan

This commit is contained in:
yangdx
2025-02-23 16:42:31 +08:00
parent dbeda8a9ff
commit df95f251dc
2 changed files with 2 additions and 2 deletions

View File

@@ -181,6 +181,8 @@ def create_app(args):
"Skip document scanning(another scanning is active)" "Skip document scanning(another scanning is active)"
) )
ASCIIColors.green("\nServer is ready to accept connections! 🚀\n")
yield yield
finally: finally:

View File

@@ -548,7 +548,5 @@ def display_splash_screen(args: argparse.Namespace) -> None:
Make sure to include the X-API-Key header in all your requests. Make sure to include the X-API-Key header in all your requests.
""") """)
ASCIIColors.green("Server is ready to accept connections! 🚀\n")
# Ensure splash output flush to system log # Ensure splash output flush to system log
sys.stdout.flush() sys.stdout.flush()