mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
removed backward compatibility for old aiohttp AccessLogger
This commit is contained in:
parent
8efe0e614f
commit
e93a5c968f
@ -41,14 +41,10 @@ from aiohttp.web import StreamResponse
|
|||||||
from aiohttp.web import WebSocketResponse
|
from aiohttp.web import WebSocketResponse
|
||||||
from aiohttp.web import WSMsgType
|
from aiohttp.web import WSMsgType
|
||||||
from aiohttp.web import Application
|
from aiohttp.web import Application
|
||||||
|
from aiohttp.web import AccessLogger
|
||||||
from aiohttp.web import run_app
|
from aiohttp.web import run_app
|
||||||
from aiohttp.web import normalize_path_middleware
|
from aiohttp.web import normalize_path_middleware
|
||||||
|
|
||||||
try:
|
|
||||||
from aiohttp.web import AccessLogger # type: ignore
|
|
||||||
except ImportError:
|
|
||||||
from aiohttp.helpers import AccessLogger # type: ignore
|
|
||||||
|
|
||||||
from .logging import get_logger
|
from .logging import get_logger
|
||||||
|
|
||||||
from .errors import OperationError
|
from .errors import OperationError
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user