Mining/pkg
google-labs-jules[bot] f91f251afc 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.

Additionally, this commit includes minor, unrelated fixes to address pre-existing build failures:
-   Adds a missing package declaration and imports in `pkg/node/dispatcher.go`.
-   Removes an unused import in `pkg/ueps/packet.go`.

Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
2026-02-02 01:14:25 +00:00
..
database feat: Add database migration tests and task supervisor 2025-12-31 15:50:17 +00:00
logging feat: Add structured logging package 2025-12-31 11:18:22 +00:00
mining feat: Add API configuration service and enhance security validation in commands 2025-12-31 17:46:25 +00:00
node feat: Create error handling and logging audit 2026-02-02 01:14:25 +00:00
ueps feat: Create error handling and logging audit 2026-02-02 01:14:25 +00:00