logWrite replaced with logging module
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user