mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
refactor: migrate to tonutils v2, pytest, pyproject.toml
- tonutils 2.0.0: TonapiClient → ToncenterV3Client, wallet.transfer() - classes → plain async functions across all utils and methods - core/: constants.py, cookies.py, exceptions.py extracted - DEVICE constant in constants.py (single source of truth) - account/device serialised with json.dumps() in all tx payloads - tests: unittest → pytest, conftest.py fixtures, 001/002 naming - pyproject.toml: pytest + ruff config - min balance check: 0.056 TON
This commit is contained in:
+1
-5
@@ -1,7 +1,5 @@
|
||||
import logging
|
||||
|
||||
from app.__meta__ import APP_NAME
|
||||
|
||||
|
||||
def setup_logging() -> None:
|
||||
formatter = logging.Formatter(
|
||||
@@ -14,7 +12,7 @@ def setup_logging() -> None:
|
||||
console_handler.setFormatter(formatter)
|
||||
|
||||
file_handler = logging.FileHandler(
|
||||
f"{APP_NAME}.log",
|
||||
"FragmentAPI.log",
|
||||
mode="w",
|
||||
encoding="utf-8"
|
||||
)
|
||||
@@ -26,8 +24,6 @@ def setup_logging() -> None:
|
||||
force=True
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user