fix: Resolve logger.warn(..) deprecration warnings (#9938)

This small PR resolves the deprecation warnings of the `logger` library:
```
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
```
This commit is contained in:
Emmanuel Ferdman
2025-05-16 11:56:03 +03:00
committed by GitHub
parent c73c6fe5c3
commit e5368f3857
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ logger = logging.getLogger(__name__)
async def auth_middleware(request: Request):
if not settings.ENABLE_AUTH:
# If authentication is disabled, allow the request to proceed
logger.warn("Auth disabled")
logger.warning("Auth disabled")
return {}
security = HTTPBearer()