logWrite replaced with logging module

This commit is contained in:
2023-06-23 11:25:27 +02:00
parent 23467a88ef
commit 4b43e76822
5 changed files with 50 additions and 27 deletions

View File

@@ -1,3 +1,4 @@
import logging
from os import makedirs
from pathlib import Path
@@ -9,6 +10,12 @@ from modules.scheduler import scheduler
makedirs(Path("data/users"), exist_ok=True)
logging.basicConfig(
level=logging.INFO,
format="%(name)s.%(funcName)s | %(levelname)s | %(message)s",
datefmt="[%X]",
)
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
async def favicon():