mirror of
https://github.com/Comfy-Org/comfy-swift-sdk.git
synced 2026-11-04 23:47:26 +00:00
[PR #7] [MERGED] feat(logging): add credential-free os.Logger error logging at SDK catch sites #12
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-swift-sdk#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-swift-sdk/pull/7
Author: @mattmillerai
Created: 6/19/2026
Status: ✅ Merged
Merged: 6/19/2026
Merged by: @mattmillerai
Base:
main← Head:matt/be-1608-error-logging-rebased📝 Commits (1)
175d737feat(logging): add credential-free os.Logger error logging at SDK catch sites📊 Changes
5 files changed (+521 additions, -15 deletions)
View changed files
📝
Sources/ComfySwiftSDK/Internal/PollingFallback.swift(+12 -4)➕
Sources/ComfySwiftSDK/Internal/SDKLog.swift(+214 -0)📝
Sources/ComfySwiftSDK/Internal/Transport.swift(+14 -8)📝
Sources/ComfySwiftSDK/Internal/WebSocketSession.swift(+11 -3)➕
Tests/ComfySwiftSDKTests/LoggingPrivacyTests.swift(+270 -0)📄 Description
Adds credential-free
os.Loggererror logging at the SDK's catch/decision sites (transport / websocket / polling), so failures are diagnosable from Console.app — including on TestFlight builds — without standing up a telemetry stack. Error class + POSIX/HTTP code + jobId only; never tokens, keys, request bodies, or output bytes (privacy test enforces this).Rebased cleanly onto current
main, so it sits on top of the output-fetch retry (#3) and reattach retry (#5).Supersedes #4 — that branch carried a merge commit (it was stacked on #3's commits), which GitHub couldn't squash-merge cleanly. Same content, linear history.
swift build+swift testgreen (134 tests).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.