mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
feat: Refactor cookie handling and hash retrieval; update environment configuration and improve logging levels
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ class Config:
|
||||
|
||||
load_dotenv(env_path)
|
||||
|
||||
required_keys = ["COOKIES", "SEED", "HASH", "API_KEY"]
|
||||
required_keys = ["SEED", "API_KEY"]
|
||||
missing_keys: list[str] = []
|
||||
|
||||
for key in required_keys:
|
||||
|
||||
@@ -28,6 +28,8 @@ def setup_logging() -> None:
|
||||
|
||||
logging.getLogger("aiogram.dispatcher").setLevel(logging.INFO)
|
||||
logging.getLogger("aiogram.event").setLevel(logging.ERROR)
|
||||
logging.getLogger("httpx").setLevel(logging.INFO)
|
||||
logging.getLogger("httpcore").setLevel(logging.WARNING)
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in New Issue
Block a user