Skip to content

Commit 96a803e

Browse files
adam-fowlerLukasaartemredkin
authored
Use SwiftLogNoOpLogHandler from swift-log (#282)
Co-authored-by: Cory Benfield <[email protected]> Co-authored-by: Artem Redkin <[email protected]>
1 parent 8b23060 commit 96a803e

File tree

3 files changed

+2
-42
lines changed

3 files changed

+2
-42
lines changed

Diff for: Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let package = Package(
2525
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.8.0"),
2626
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.3.0"),
2727
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.5.1"),
28-
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
28+
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
2929
],
3030
targets: [
3131
.target(

Diff for: Sources/AsyncHTTPClient/HTTPClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class HTTPClient {
7070
var state: State
7171
private let stateLock = Lock()
7272

73-
internal static let loggingDisabled = Logger(label: "AHC-do-not-log", factory: { _ in NoOpLogHandler() })
73+
internal static let loggingDisabled = Logger(label: "AHC-do-not-log", factory: { _ in SwiftLogNoOpLogHandler() })
7474

7575
/// Create an `HTTPClient` with specified `EventLoopGroup` provider and configuration.
7676
///

Diff for: Sources/AsyncHTTPClient/NoOpLogHandler.swift

-40
This file was deleted.

0 commit comments

Comments
 (0)