Move server ready message to lifespan
This commit is contained in:
@@ -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:
|
||||||
|
@@ -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()
|
||||||
|
Reference in New Issue
Block a user