fix(@applications/mac-sync): 🐛 update token and error logging privacy handling
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
1a6facd1ef
commit
60df5f8c57
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue