Skip to content

Commit

Permalink
fix: configured logger is now also used for logging LDEventSource log…
Browse files Browse the repository at this point in the history
… messages (#390)

**Related issues**

SC-245493
Reported issue #388
  • Loading branch information
tanderson-ld authored Jun 3, 2024
1 parent e10541d commit 7a3e67a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LaunchDarkly.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ Pod::Spec.new do |ld|
ld.swift_version = '5.0'

ld.subspec 'Core' do |es|
es.dependency 'LDSwiftEventSource', '3.1.1'
es.dependency 'LDSwiftEventSource', '3.3.0'
end
end
2 changes: 1 addition & 1 deletion LaunchDarkly.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@
repositoryURL = "https://github.com/LaunchDarkly/swift-eventsource.git";
requirement = {
kind = exactVersion;
version = 3.1.1;
version = 3.3.0;
};
};
B4903D9624BD61B200F087C4 /* XCRemoteSwiftPackageReference "OHHTTPStubs" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ final class ClientServiceFactory: ClientServiceCreating {
config.headerTransform = { delegate?(url, $0) ?? $0 }
config.headers = httpHeaders
config.method = connectMethod
config.logger = self.logger
if let errorHandler = errorHandler {
config.connectionErrorHandler = errorHandler
}
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
.package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", .exact("9.1.0")),
.package(url: "https://github.com/Quick/Quick.git", .exact("4.0.0")),
.package(url: "https://github.com/Quick/Nimble.git", .exact("9.2.1")),
.package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .exact("3.1.1"))
.package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .exact("3.3.0"))
],
targets: [
.target(
Expand Down

0 comments on commit 7a3e67a

Please sign in to comment.