This commit is contained in:
Adam Hopkins 2020-07-14 10:23:31 +03:00
parent 9e053bef19
commit 23e1b5ee3f

View File

@ -112,8 +112,6 @@ class Lifespan:
def __init__(self, asgi_app: "ASGIApp") -> None: def __init__(self, asgi_app: "ASGIApp") -> None:
self.asgi_app = asgi_app self.asgi_app = asgi_app
print(self.asgi_app.sanic_app.listeners)
if "before_server_start" in self.asgi_app.sanic_app.listeners: if "before_server_start" in self.asgi_app.sanic_app.listeners:
warnings.warn( warnings.warn(
'You have set a listener for "before_server_start" ' 'You have set a listener for "before_server_start" '