Remove auth cookie persistence logs

This commit is contained in:
lucast committed 2026-10-09 01:18:31 +02:00
1 parent 2562acd96f
commit 5cf7c48365
2 files changed
+1 -29

No files matched your search

-6
View File
@@ -110,9 +110,6 @@ public final class APIClient: @unchecked Sendable {
guard let url = components.url else { throw APIError.invalidURL }
if let cookieStorage = session.configuration.httpCookieStorage {
AuthCookiePersistence.restore(into: cookieStorage, for: url)
if path.hasPrefix("auth/") {
AuthCookiePersistence.logRequestCookies(from: cookieStorage, for: url, phase: "before \(path)")
}
}
var request = URLRequest(url: url)
request.httpMethod = method
@@ -130,9 +127,6 @@ public final class APIClient: @unchecked Sendable {
let (data, rawResponse) = try await session.data(for: request)
if let cookieStorage = session.configuration.httpCookieStorage {
AuthCookiePersistence.save(from: cookieStorage, for: url)
if path.hasPrefix("auth/") {
AuthCookiePersistence.logRequestCookies(from: cookieStorage, for: url, phase: "after \(path)")
}
}
guard let http = rawResponse as? HTTPURLResponse else { throw APIError.nonHTTPResponse }
guard (200..<300).contains(http.statusCode) else {