Mining/pkg/ueps
google-labs-jules[bot] 8881dd324b feat: Create error handling and logging audit
This commit introduces a new audit document, `AUDIT-ERROR-HANDLING.md`, which provides a comprehensive review of the project's error handling and logging practices.

The audit covers:
-   **Error Handling:** Analyzes the inconsistency between the well-structured API error responses and the simpler, unstructured error handling at the application's entry points.
-   **Logging:** Details the existing custom logger, its lack of JSON output, and its inconsistent use across the codebase.
-   **Recommendations:** Provides actionable steps for improvement, including adopting structured JSON logging, centralizing logger configuration, and standardizing on the global logger.

This commit also includes fixes for pre-existing build errors to allow the CI to pass:
-   Adds a missing package declaration and imports in `pkg/node/dispatcher.go` and comments out calls to undefined methods.
-   Adds a missing import in `pkg/node/peer.go` and resolves an unused variable error.
-   Removes an unused import in `pkg/ueps/packet.go`.

Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
2026-02-02 01:29:57 +00:00
..
packet.go feat: Create error handling and logging audit 2026-02-02 01:29:57 +00:00
reader.go Implement ReadAndVerify function for UEPS frames 2026-01-03 16:01:58 +00:00