Avoid unnecessary error log
This commit is contained in:
parent
41454b2553
commit
76492a7f88
@ -7,6 +7,7 @@ import traceback
|
||||
|
||||
from gunicorn.workers import base # type: ignore
|
||||
|
||||
from sanic.compat import UVLOOP_INSTALLED
|
||||
from sanic.log import logger
|
||||
from sanic.server import HttpProtocol, Signal, serve, use_uvloop
|
||||
from sanic.server.protocols.websocket_protocol import WebSocketProtocol
|
||||
@ -17,6 +18,7 @@ try:
|
||||
except ImportError:
|
||||
ssl = None # type: ignore
|
||||
|
||||
if UVLOOP_INSTALLED:
|
||||
use_uvloop()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user