From 60df5f8c572fbbbd76cf5318a98b243ca40cc523 Mon Sep 17 00:00:00 2001 From: Natalie Date: Sun, 17 May 2026 23:05:13 -0700 Subject: [PATCH] =?UTF-8?q?fix(@applications/mac-sync):=20=F0=9F=90=9B=20u?= =?UTF-8?q?pdate=20token=20and=20error=20logging=20privacy=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../imessage/Sources/IMessageSync/BlobSyncManager.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/@packages/imessage/Sources/IMessageSync/BlobSyncManager.swift b/@packages/imessage/Sources/IMessageSync/BlobSyncManager.swift index 30ea9c1..ded3795 100644 --- a/@packages/imessage/Sources/IMessageSync/BlobSyncManager.swift +++ b/@packages/imessage/Sources/IMessageSync/BlobSyncManager.swift @@ -169,9 +169,8 @@ final class BlobSyncManager: @unchecked Sendable { private func uploadBlob(id: String, data: Data, contentType: String) async throws -> String { let path = "/client/imessage/attachments/\(id)/blob" - // Diagnostic: token presence at upload time let tokenPresent = ((try? apiClient.getAuthToken()) ?? nil) != nil - log.info("BlobSyncManager: uploadBlob id=\(id) bytes=\(data.count) tokenPresent=\(tokenPresent)") + log.info("BlobSyncManager: uploadBlob id=\(id, privacy: .public) bytes=\(data.count) tokenPresent=\(tokenPresent)") let responseData: Data do { @@ -180,7 +179,7 @@ final class BlobSyncManager: @unchecked Sendable { } } catch { let ns = error as NSError - log.warning("BlobSyncManager: uploadBlob error id=\(id) domain=\(ns.domain) code=\(ns.code) desc=\(error.localizedDescription) full=\(String(describing: error))") + log.warning("BlobSyncManager: uploadBlob error id=\(id, privacy: .public) path=\(path, privacy: .public) domain=\(ns.domain, privacy: .public) code=\(ns.code) desc=\(error.localizedDescription, privacy: .public)") throw error }