💥 remove builtin adapter auto register

This commit is contained in:
yanyongyu
2020-12-02 13:17:27 +08:00
parent 6a25e42571
commit 0738b275a5
4 changed files with 7 additions and 6 deletions

View File

@ -123,7 +123,8 @@ class BaseDriver(abc.ABC):
* ``*args``
* ``**kwargs``
"""
raise NotImplementedError
logger.opt(
colors=True).debug(f"Loaded adapters: {', '.join(self._adapters)}")
@abc.abstractmethod
async def _handle_http(self):

View File

@ -98,6 +98,7 @@ class Driver(BaseDriver):
app: Optional[str] = None,
**kwargs):
"""使用 ``uvicorn`` 启动 FastAPI"""
super().run(host, port, app, **kwargs)
LOGGING_CONFIG = {
"version": 1,
"disable_existing_loggers": False,