Skip to content

Commit

Permalink
Merge development into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sbertix committed Mar 21, 2021
2 parents 7ca5de1 + d7dd987 commit 7e83702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ComposableRequest/Publishers/Publisher+Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public extension Request {
.retry(max(input.retries, 0))
.map(Request.Response.init)
.handleEvents(
receiveSubscription: { _ in logger.log(request: request) },
receiveOutput: { logger.log(.success($0)) },
receiveCompletion: { if case .failure(let error) = $0 { logger.log(.failure(error)) }},
receiveRequest: { if $0.max ?? 0 > 0 { logger.log(request: request) }}
receiveCompletion: { if case .failure(let error) = $0 { logger.log(.failure(error)) }}
)
.catch { Fail(error: $0) }
.eraseToAnyPublisher()
Expand Down

0 comments on commit 7e83702

Please sign in to comment.