Skip to content

Commit

Permalink
use connexion logger instead of root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixSchwarz committed Dec 3, 2024
1 parent 58c8bb6 commit 88a1d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connexion/middleware/request_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send):
try:
body_validator = self._validator_map["body"][mime_type] # type: ignore
except KeyError:
logging.info(
logger.info(
f"Skipping validation. No validator registered for content type: "
f"{mime_type}."
)
Expand Down
2 changes: 1 addition & 1 deletion connexion/middleware/response_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def wrapped_send(message: t.MutableMapping[str, t.Any]) -> None:
try:
body_validator = self._validator_map["response"][mime_type] # type: ignore
except KeyError:
logging.info(
logger.info(
f"Skipping validation. No validator registered for content type: "
f"{mime_type}."
)
Expand Down

0 comments on commit 88a1d41

Please sign in to comment.