Skip to content

Commit

Permalink
Merge pull request #294 from ejensen/configuration-initializer
Browse files Browse the repository at this point in the history
Restore `NetworkLogger`’s convenience initializer
  • Loading branch information
kean authored Sep 19, 2024
2 parents 2380f56 + 2c0f2f3 commit 1749e31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/Pulse/NetworkLogger/NetworkLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ public final class NetworkLogger: @unchecked Sendable {
self.processPatterns()
}

// /// Initializes and configures the network logger.
// public convenience init(store: LoggerStore? = nil, _ configure: (inout Configuration) -> Void) {
// var configuration = Configuration()
// configure(&configuration)
// self.init(store: store, configuration: configuration)
// }
/// Initializes and configures the network logger.
public convenience init(store: LoggerStore? = nil, _ configure: (inout Configuration) -> Void) {
var configuration = Configuration()
configure(&configuration)
self.init(store: store, configuration: configuration)
}

// MARK: Patterns

Expand Down

0 comments on commit 1749e31

Please sign in to comment.