mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 01:40:21 +08:00
fix deprecation
This commit is contained in:
parent
7fb8a63219
commit
20017a95ac
3
main.py
3
main.py
@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import time
|
||||
|
||||
import uvicorn
|
||||
@ -13,7 +14,7 @@ from src.utils import logger
|
||||
from src.utils.browser import bypass_cloudflare, new_browser
|
||||
from src.utils.consts import LOG_LEVEL
|
||||
|
||||
app = FastAPI(debug=True)
|
||||
app = FastAPI(debug=LOG_LEVEL == logging.DEBUG, log_level=LOG_LEVEL)
|
||||
|
||||
|
||||
@app.get("/")
|
||||
|
@ -3,7 +3,7 @@ import os
|
||||
from pathlib import Path
|
||||
|
||||
LOG_LEVEL = os.getenv("LOG_LEVEL") or "INFO"
|
||||
LOG_LEVEL = logging.getLevelName(LOG_LEVEL.upper())
|
||||
LOG_LEVEL = logging.getLevelNamesMapping()[LOG_LEVEL.upper()]
|
||||
|
||||
CHALLENGE_TITLES = [
|
||||
# Cloudflare
|
||||
|
Loading…
x
Reference in New Issue
Block a user