Move server ready message to lifespan
This commit is contained in:
parent
dbeda8a9ff
commit
df95f251dc
2 changed files with 2 additions and 2 deletions
|
|
@ -181,6 +181,8 @@ def create_app(args):
|
|||
"Skip document scanning(another scanning is active)"
|
||||
)
|
||||
|
||||
ASCIIColors.green("\nServer is ready to accept connections! 🚀\n")
|
||||
|
||||
yield
|
||||
|
||||
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.
|
||||
""")
|
||||
|
||||
ASCIIColors.green("Server is ready to accept connections! 🚀\n")
|
||||
|
||||
# Ensure splash output flush to system log
|
||||
sys.stdout.flush()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue