Skip to content

Commit 288f5ca

Browse files
committed
Adding some logs
1 parent 61bf8c1 commit 288f5ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/src/main/java/com/loopj/android/http/MySSLSocketFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ public class MySSLSocketFactory extends SSLSocketFactory {
6060

6161
try {
6262
sslContext = SSLContext.getInstance("TLSv1.2");
63+
Log.w("SSLSocketFactory", "TLSv1.2 is supported");
6364
} catch (NoSuchAlgorithmException e) {
6465
// TODO fallback v1.1 if needed
65-
Log_OC.w(TAG, "TLSv1.2 is not supported in this device; falling through TLSv1.0");
66+
Log.w("SSLSocketFactory", "TLSv1.2 is not supported in this device; falling through TLSv1.0");
6667
sslContext = SSLContext.getInstance("TLSv1");
6768
// should be available in any device; see reference of supported protocols in
6869
// http://developer.android.com/reference/javax/net/ssl/SSLSocket.html

0 commit comments

Comments
 (0)