Suppress some logs

This commit is contained in:
Nexus 2024-02-22 18:18:49 +00:00
parent 314b60019c
commit edbb44f72f
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -43,6 +43,9 @@ logging.basicConfig(
format="%(asctime)s:%(levelname)s:%(name)s:%(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"
) )
logging.getLogger("httpcore.connection").setLevel(logging.INFO)
logging.getLogger("httpcore.http11").setLevel(logging.INFO)
logging.getLogger("httpx").setLevel(logging.INFO)
app = fastapi.FastAPI( app = fastapi.FastAPI(
root_path=os.environ.get("PREVIEW_ROOT_PATH", ""), root_path=os.environ.get("PREVIEW_ROOT_PATH", ""),
lifespan=startup lifespan=startup