Only display MOTD in ASGI on startup (#2349)
This commit is contained in:
parent
a23547d73b
commit
313f97ac77
|
@ -1728,7 +1728,8 @@ class Sanic(BaseSanic, metaclass=TouchUpMeta):
|
|||
details: https://asgi.readthedocs.io/en/latest
|
||||
"""
|
||||
self.asgi = True
|
||||
self.motd("")
|
||||
if scope["type"] == "lifespan":
|
||||
self.motd("")
|
||||
self._asgi_app = await ASGIApp.create(self, scope, receive, send)
|
||||
asgi_app = self._asgi_app
|
||||
await asgi_app()
|
||||
|
|
Loading…
Reference in New Issue
Block a user