8 Commits

Author SHA1 Message Date
38078b36b3 (thon): add structured logging and improve error handling
Add logging infrastructure across the codebase with a consistent logger named "thon" and replace print statements with appropriate log levels (debug, info, warning, error). Improve error handling in the session processing pipeline by:

- Adding proper error message tracking in Thon.__aiter__
- Using shutil.move instead of os.rename for better cross-platform compatibility
- Enhancing the move utility function with better error handling and retry logic
- Adding debug logging in Converter for session conversion tracking
- Centralizing logging configuration in the main module

This change improves debugging capabilities and provides better visibility into the application's operation while maintaining the same functionality.
2026-04-02 23:06:21 +03:00
174b74f0ab 🔥(docs): remove GEMINI.md project context file 2026-04-02 22:28:58 +03:00
5ed6f960d5 feat(logging): improve error handling and logging for file movement
Add retry logic to the `move` function to handle cases where files are locked or in use. Implement comprehensive error handling and logging to provide detailed feedback about file movement operations. Update the `Thon` class to include more informative logging messages for banned account handling and client disconnection. Improve the `ProcessThon` class with proper resource cleanup during disconnection.
2026-03-07 16:07:04 +03:00
865d39d512 feat(process): remove redundant client deletion
Remove redundant client deletion in the `ProcessThon` class to prevent potential issues with the client object being deleted twice. This change ensures that the client is only deleted once when the process is closed, maintaining consistency and avoiding potential errors.
2026-03-07 14:19:36 +03:00
ccf94b57eb fix(process): remove client reference after disconnection
Remove the client reference from the ProcessThon class after disconnection to prevent potential memory leaks and ensure proper cleanup of resources. This change ensures that the client object is dereferenced and garbage collected after the disconnection process is completed.
2026-03-07 14:02:47 +03:00
8ac6872c96 fix(thon): add debug print for process check
Add debug print to output the result of the process check for easier debugging
2026-03-07 13:53:30 +03:00
0761e8ff94 docs: add project documentation
Add comprehensive documentation for the Thon project, including project overview, architecture, usage examples, and development conventions. Update the README.md file to provide clear installation instructions, usage examples, and project structure. Remove the unused CLI entry point from pyproject.toml.
2026-01-25 23:02:19 +03:00
55ca3f7ed0 initial commit 2026-01-25 22:48:13 +03:00