feat: logging for response status

This commit is contained in:
Karim shoair
2024-12-11 20:14:32 +02:00
parent e332444411
commit 9f0001af26
2 changed files with 7 additions and 3 deletions
+3 -2
View File
@@ -14,8 +14,9 @@ from functools import lru_cache as cache # isort:skip
html_forbidden = {html.HtmlComment, }
logging.basicConfig(
level=logging.ERROR,
format='%(asctime)s - %(levelname)s - %(message)s',
level=logging.INFO,
format="[%(asctime)s] %(levelname)s: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
handlers=[
logging.StreamHandler()
]