Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewc committed Feb 16, 2020
1 parent 5ae7877 commit 8e0ac1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion Sources/Hue/Hue+API.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ extension Hue {
private func execute<T>(with endpoint: Endpoint, type: T.Type, body: RequestBody? = nil) -> AnyPublisher<T, Hue.Error> where T: Decodable {
execute(endpoint: endpoint, method: body == nil ? .get : .put, body: body)
.decode(type: type, decoder: JSONDecoder())
.print()
.autoMapDecodingError()
.autoMapErrorType(Hue.Error.self, default: .unknown)
.eraseToAnyPublisher()
Expand Down
3 changes: 0 additions & 3 deletions Sources/Hue/Hue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ public class Hue {
let (data, response) = $0
guard let httpResponse = response as? HTTPURLResponse else { throw Error.networkError }
guard httpResponse.statusCode == 200 else { throw Error.httpError(statusCode: httpResponse.statusCode) }
#if DEBUG
print("[Hue HTTP Response]: \n\n \(String(data: data, encoding: .utf8)!)")
#endif
return data
}
.autoMapErrorType(Hue.Error.self, default: .unknown)
Expand Down

0 comments on commit 8e0ac1c

Please sign in to comment.