less-logs

This commit is contained in:
2024-01-23 17:52:12 +03:00
parent 5bcef53138
commit 8b23ece194
2 changed files with 12 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ from settings import AUTH_URL
from services.db import local_session
from orm.author import Author
import logging
logger = logging.getLogger("\t[services.auth]\t")
logger.setLevel(logging.DEBUG)
async def check_auth(req) -> str | None:
token = req.headers.get("Authorization")