Skip to content

Commit

Permalink
[cygnus-common][HttpClientFactory.java] Add debug trace regarding the…
Browse files Browse the repository at this point in the history
… file where httpclient library is loaded from
  • Loading branch information
frbattid committed Oct 11, 2016
1 parent cf21b6d commit e47b88f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.telefonica.iot.cygnus.log.CygnusLogger;
import com.telefonica.iot.cygnus.utils.CommonConstants;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.Principal;
Expand Down Expand Up @@ -65,6 +66,10 @@ public HttpClientFactory(boolean ssl, String loginConfFile, String krb5ConfFile)
this.loginConfFile = loginConfFile;
this.krb5ConfFile = krb5ConfFile;

// trace the file containing the httpclient library
URL myClassURL = PoolingClientConnectionManager.class.getProtectionDomain().getCodeSource().getLocation();
LOGGER.debug("Loading httpclient from " + myClassURL.toExternalForm());

// create the appropriate connections manager
if (ssl) {
sslConnectionsManager = new PoolingClientConnectionManager(getSSLSchemeRegistry());
Expand Down

0 comments on commit e47b88f

Please sign in to comment.