Skip to content

Commit

Permalink
Logging decrypted message into te debug console
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 committed Jul 2, 2024
1 parent 582f6ae commit de923fd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public class WPNNetworkingService {
self.responseDelegate?.responseReceived(from: request.url, statusCode: urlResponse?.statusCode, body: receivedData)
resp = envelope
case .encrypted(let envelope, let decryptedData):
D.debug("Decrypted response from \(url.absoluteString):\n\(String(data: decrypted, encoding: .utf8) ?? "empty")")
self.responseDelegate?.encryptedResponseReceived(from: request.url, statusCode: urlResponse?.statusCode, body: receivedData, decrypted: decryptedData)
resp = envelope
case .failed:
Expand Down

0 comments on commit de923fd

Please sign in to comment.