Skip to content

Commit 1617bba

Browse files
committed
fix: use IssueReporting
1 parent de8419e commit 1617bba

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Sources/Auth/AuthClient.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ConcurrencyExtras
22
import Foundation
3+
import IssueReporting
34

45
#if canImport(AuthenticationServices)
56
import AuthenticationServices
@@ -1410,7 +1411,7 @@ public actor AuthClient {
14101411
let session = try? await session
14111412
eventEmitter.emit(.initialSession, session: session, token: token)
14121413

1413-
logger?.warning(
1414+
reportIssue(
14141415
"""
14151416
Initial session emitted after attempting to refresh the local stored session.
14161417
This is incorrect behavior and will be fixed in the next major release since it’s a breaking change.

Sources/Realtime/RealtimeChannelV2.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ public final class RealtimeChannelV2: Sendable, RealtimeChannelProtocol {
315315
body: body
316316
)
317317

318-
let response = try await withTimeout(interval: timeout ?? socket.options.timeoutInterval) { [self] in
318+
let response = try await withTimeout(interval: timeout ?? socket.options.timeoutInterval) {
319+
[self] in
319320
await Result {
320321
try await socket.http.send(request)
321322
}
@@ -346,10 +347,12 @@ public final class RealtimeChannelV2: Sendable, RealtimeChannelProtocol {
346347
@MainActor
347348
public func broadcast(event: String, message: JSONObject) async {
348349
if status != .subscribed {
349-
logger?.warning(
350-
"Realtime broadcast() is automatically falling back to REST API. "
351-
+ "This behavior will be deprecated in the future. "
352-
+ "Please use httpSend() explicitly for REST delivery."
350+
reportIssue(
351+
"""
352+
Realtime broadcast() is automatically falling back to REST API.
353+
This behavior will be deprecated in the future.
354+
Please use httpSend() explicitly for REST delivery.
355+
"""
353356
)
354357

355358
var headers: HTTPFields = [.contentType: "application/json"]
@@ -751,4 +754,3 @@ public final class RealtimeChannelV2: Sendable, RealtimeChannelProtocol {
751754
push?.didReceive(status: PushStatus(rawValue: status) ?? .ok)
752755
}
753756
}
754-

0 commit comments

Comments
 (0)