Skip to content

Commit 9fbcb39

Browse files
author
Pushkar Kulkarni
committed
[gardening]print warning only if URLSessionDebug is set
1 parent f0f1209 commit 9fbcb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSURLSession/NSURLSessionTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ fileprivate extension URLSessionTask {
982982
guard let s = session as? URLSession else { fatalError() }
983983
s.delegateQueue.addOperation {
984984
delegate.urlSession(s, dataTask: dt, didReceive: response, completionHandler: { _ in
985-
print("warning: Ignoring dispotion from completion handler.")
985+
URLSession.printDebug("warning: Ignoring disposition from completion handler.")
986986
})
987987
}
988988
case .taskDelegate:

0 commit comments

Comments
 (0)