Skip to content

Commit 8b5b3e7

Browse files
author
Stephane Landelle
committed
Fix logs
1 parent 04eb3e0 commit 8b5b3e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ning/http/util/DefaultHostnameVerifier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private boolean hostnameMatches(String hostname, SSLSession session) {
9696

9797
if (peerCertificates[0] instanceof X509Certificate) {
9898
X509Certificate peerCertificate = (X509Certificate) peerCertificates[0];
99-
log.debug("peerCertificate = {0}", peerCertificate);
99+
log.debug("peerCertificate = {}", peerCertificate);
100100
try {
101101
checker.match(hostname, peerCertificate);
102102
// Certificate matches hostname if no exception is thrown.
@@ -112,7 +112,7 @@ private boolean hostnameMatches(String hostname, SSLSession session) {
112112
log.debug("Not using certificates for peers, try verifying the principal");
113113
try {
114114
Principal peerPrincipal = session.getPeerPrincipal();
115-
log.debug("peerPrincipal = {0}", peerPrincipal);
115+
log.debug("peerPrincipal = {}", peerPrincipal);
116116
if (peerPrincipal instanceof KerberosPrincipal) {
117117
return checker.match(hostname, (KerberosPrincipal) peerPrincipal);
118118
} else {

0 commit comments

Comments
 (0)