Skip to content

Feature/error handling - #4

Merged
Solmath merged 10 commits into
mainfrom
feature/error-handling
Mar 31, 2026
Merged

Feature/error handling#4
Solmath merged 10 commits into
mainfrom
feature/error-handling

Conversation

@Solmath

@Solmath Solmath commented Aug 21, 2025

Copy link
Copy Markdown
Owner

No description provided.

Solmath added 10 commits August 21, 2025 20:48
* Added logging configuration to capture detailed information.
* Improved error handling for file operations and EQ band parsing.
* Updated main application logic to log parsing steps and results.
* Enhanced user feedback for EQ settings application process.
…ply_eq`

* Added specific error logging for connection timeouts and client connection errors.
* Adjusted timeout parameter from 10 to 5 seconds for better responsiveness.
* Enhanced logging suppression for `aiohttp` and `aiostreammagic` to reduce noise.
- Changed logging levels for `aiohttp`, `aiostreammagic`, and `asyncio` to `CRITICAL` to suppress unnecessary debug logs.
- Added `ServerTimeoutError` import for potential future error handling in `connect_and_apply_eq`.
…larity

* Simplified the connection and EQ application process in `connect_and_apply_eq`.
* Removed nested try-except blocks for better readability.
* Enhanced logging for connection status and device information.
… EQ settings

* Ensure proper disconnection from the StreamMagic device.
* Log the disconnection event for better traceability.
* Incremented the version number in `pyproject.toml` to reflect the latest changes.
* Updated `main` function to accept parameters directly instead of relying on `sys.argv`.
* Enhanced error handling by returning error codes instead of using `sys.exit`.
* Improved clarity and maintainability of the code.
- Introduced `argparse` for improved command line interface.
- Added options for `--host`, `--timeout`, and `--dry-run`.
- Enhanced user experience with usage examples and default values.
* Implemented validation for both IPv4 and IPv6 addresses in `connect_and_apply_eq`.
* Added error logging for invalid IP addresses to improve debugging.
- Clarified that the tool sends EQ settings to the StreamMagic device at the specified host IP address.
- Added details on using the `--host` argument for setting the host IP address.
- Included information about IP address validation before connection.
- Documented the `--dry-run` option for parsing files without connecting to the device.
- Explained how to set the connection timeout duration.
@Solmath Solmath mentioned this pull request Aug 21, 2025
8 tasks
@Solmath
Solmath merged commit 41b25a7 into main Mar 31, 2026
@Solmath
Solmath deleted the feature/error-handling branch March 31, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant