Better message
This commit is contained in:
parent
d00b868b40
commit
48a54f81e5
10
sanic/app.py
10
sanic/app.py
@ -225,11 +225,11 @@ class Sanic(BaseSanic, metaclass=TouchUpMeta):
|
|||||||
# uvloop requested and installed, but opted-out during install
|
# uvloop requested and installed, but opted-out during install
|
||||||
elif strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")):
|
elif strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")):
|
||||||
error_logger.warning(
|
error_logger.warning(
|
||||||
"You are running the app using uvloop, but we've noticed "
|
"You are running the app using uvloop, but the "
|
||||||
"that the 'SANIC_NO_UVLOOP' environment variable "
|
"'SANIC_NO_UVLOOP' environment variable (used to opt-out "
|
||||||
"(used to opt-out of installing uvloop with Sanic) "
|
"of installing uvloop with Sanic) is set to true. If you "
|
||||||
"is set to true. If you want to disable uvloop with "
|
"want to disable uvloop with Sanic, set the 'USE_UVLOOP' "
|
||||||
"Sanic, set the 'USE_UVLOOP' configuration value to false."
|
"configuration value to false."
|
||||||
)
|
)
|
||||||
|
|
||||||
self.router.ctx.app = self
|
self.router.ctx.app = self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user