Skip to content

Commit

Permalink
[수정] SSEClient 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
wonniiii committed Aug 14, 2024
1 parent 78aa0e6 commit 22eee35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package-kuring/Sources/Networks/Depdencies/SSEClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class SSEClient: NSObject, ObservableObject, URLSessionDataDelegate {
private var url: URL
private var session: URLSession?
private var testableFCMToken: String = Date().description
private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "SSEClient")
private let logger = Logger(subsystem: "Network", category: "SSEClient")

public override init() {
let plistURL = Bundle.module.url(forResource: "KuringLink-Info", withExtension: "plist")!
let dict = try! NSDictionary(contentsOf: plistURL, error: ())
Expand Down Expand Up @@ -70,7 +70,7 @@ public class SSEClient: NSObject, ObservableObject, URLSessionDataDelegate {
if let error = error {
Task { @MainActor in
self.error = error
private let logger = Logger(subsystem: "Network", category: "SSEClient")
logger.error("SSEClient: SSE connection error: \(error.localizedDescription)")
}
}
}
Expand Down

0 comments on commit 22eee35

Please sign in to comment.