fix logging

This commit is contained in:
Nexus 2024-02-22 18:04:08 +00:00
parent 665c4b82a5
commit b8079e1db0
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -40,7 +40,7 @@ async def startup(_):
logging.basicConfig( logging.basicConfig(
level=logging.getLevelName(os.environ.get("LOG_LEVEL", "INFO").upper()), level=logging.getLevelName(os.environ.get("LOG_LEVEL", "INFO").upper()),
format="%(asctime):%(levelname):%(name):%(message)s", format="%(asctime)s:%(levelname)s:%(name)s:%(message)s",
datefmt="%d/%m/%Y %H:%M:%S" datefmt="%d/%m/%Y %H:%M:%S"
) )
app = fastapi.FastAPI( app = fastapi.FastAPI(