Skip to content

Commit 0b808a7

Browse files
Merge pull request #206 from chunkyguy/patch-1
Log NSData as human readable string
2 parents 77df552 + c367856 commit 0b808a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/IterableAPIInternal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ final class IterableAPIInternal : NSObject, PushTrackerProtocol {
606606
toLog += ", \(reason)"
607607
}
608608
if let data = data {
609-
toLog += ", got response \(data)"
609+
toLog += ", got response \(String(data: data, encoding: .utf8) ?? "nil")"
610610
}
611611
ITBError(toLog)
612612
}

0 commit comments

Comments
 (0)