feat: implement logging throughout the application and enhance error handling

This commit is contained in:
bohd4nx
2026-05-29 00:58:00 +03:00
parent e9dd706fa6
commit 546bcb337c
15 changed files with 321 additions and 41 deletions
+14
View File
@@ -49,6 +49,20 @@ Requires Python 3.10+.
---
## Logging
`pyfragment` uses standard Python logging under the `pyfragment` namespace and is silent by default.
To enable logs, configure your app's logging and set the level:
```python
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger("pyfragment").setLevel(logging.DEBUG) # DEBUG for detailed request logs
```
---
## Credentials
**Fragment cookies** — log in to [fragment.com](https://fragment.com) and connect your TON wallet. You can get cookies in two ways: