Skip to content

Enrich network layer error logging#33

Merged
patricioxavier8 merged 1 commit intofeature/workspacesfrom
feature/improve-layer-network-logging
Mar 30, 2026
Merged

Enrich network layer error logging#33
patricioxavier8 merged 1 commit intofeature/workspacesfrom
feature/improve-layer-network-logging

Conversation

@patricioxavier8
Copy link
Copy Markdown
Contributor

Overview

Improves observability across the entire network layer without modifying business logic or the main application code.

Key Changes

  • Download.swift: Wrapped all failure points (Info, Mirrors, S3, Copying) in EnrichedError.
  • APIClient.swift: All API errors now include the [METHOD /path] prefix automatically.
  • Errors.swift: Added 7 new ErrorCode cases for detailed download diagnostics.

- Implement EnrichedError in Download.swift for granular failure tracking.
- Add new ErrorCodes (DWN-005 to DWN-011) and downloadGetInfo step.
- Tag APIClientError messages with [METHOD /path] for global API visibility.
@patricioxavier8 patricioxavier8 self-assigned this Mar 30, 2026
@patricioxavier8 patricioxavier8 requested a review from sg-gs March 30, 2026 15:16
@patricioxavier8 patricioxavier8 merged commit fad3a9d into feature/workspaces Mar 30, 2026
1 check failed
@patricioxavier8 patricioxavier8 deleted the feature/improve-layer-network-logging branch March 30, 2026 15:32
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.

2 participants