Skip to content

Commit

Permalink
Revert logging file name modification (#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jun 27, 2022
1 parent 837fd21 commit eaf8b4d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -24,7 +24,7 @@ files =
uvicorn/middleware/wsgi.py,
uvicorn/supervisors/watchfilesreload.py,
uvicorn/supervisors/watchgodreload.py,
uvicorn/_logging.py,
uvicorn/logging.py,
uvicorn/middleware/asgi2.py,
uvicorn/server.py,
uvicorn/__init__.py,
Expand Down
2 changes: 1 addition & 1 deletion tests/middleware/test_message_logger.py
Expand Up @@ -2,7 +2,7 @@
import pytest

from tests.middleware.test_logging import caplog_for_logger
from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.logging import TRACE_LOG_LEVEL
from uvicorn.middleware.message_logger import MessageLoggerMiddleware


Expand Down
6 changes: 3 additions & 3 deletions uvicorn/config.py
Expand Up @@ -23,7 +23,7 @@

from h11._connection import DEFAULT_MAX_INCOMPLETE_EVENT_SIZE

from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.logging import TRACE_LOG_LEVEL

if sys.version_info < (3, 8): # pragma: py-gte-38
from typing_extensions import Literal
Expand Down Expand Up @@ -97,12 +97,12 @@
"disable_existing_loggers": False,
"formatters": {
"default": {
"()": "uvicorn._logging.DefaultFormatter",
"()": "uvicorn.logging.DefaultFormatter",
"fmt": "%(levelprefix)s %(message)s",
"use_colors": None,
},
"access": {
"()": "uvicorn._logging.AccessFormatter",
"()": "uvicorn.logging.AccessFormatter",
"fmt": '%(levelprefix)s %(client_addr)s - "%(request_line)s" %(status_code)s', # noqa: E501
},
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion uvicorn/middleware/message_logger.py
Expand Up @@ -11,7 +11,7 @@
WWWScope,
)

from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.logging import TRACE_LOG_LEVEL

PLACEHOLDER_FORMAT = {
"body": "<{length} bytes>",
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/protocols/http/h11_impl.py
Expand Up @@ -7,8 +7,8 @@

import h11

from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.config import Config
from uvicorn.logging import TRACE_LOG_LEVEL
from uvicorn.protocols.http.flow_control import (
CLOSE_HEADER,
HIGH_WATER_LIMIT,
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/protocols/http/httptools_impl.py
Expand Up @@ -10,8 +10,8 @@

import httptools

from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.config import Config
from uvicorn.logging import TRACE_LOG_LEVEL
from uvicorn.protocols.http.flow_control import (
CLOSE_HEADER,
HIGH_WATER_LIMIT,
Expand Down
2 changes: 1 addition & 1 deletion uvicorn/protocols/websockets/websockets_impl.py
Expand Up @@ -6,7 +6,7 @@
import websockets
from websockets.extensions.permessage_deflate import ServerPerMessageDeflateFactory

from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.logging import TRACE_LOG_LEVEL
from uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl


Expand Down
2 changes: 1 addition & 1 deletion uvicorn/protocols/websockets/wsproto_impl.py
Expand Up @@ -9,7 +9,7 @@
from wsproto.extensions import PerMessageDeflate
from wsproto.utilities import RemoteProtocolError

from uvicorn._logging import TRACE_LOG_LEVEL
from uvicorn.logging import TRACE_LOG_LEVEL
from uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl


Expand Down

0 comments on commit eaf8b4d

Please sign in to comment.