Skip to content

Commit

Permalink
Merge pull request #61 from yma96/master
Browse files Browse the repository at this point in the history
Add debug log for proxy connection planner
  • Loading branch information
yma96 authored Aug 14, 2024
2 parents 0227d89 + 15f8244 commit 1cc0f5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/commonjava/util/jhttpc/HttpFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ public CloseableHttpClient createClient( final SiteConfig location, final List<H

if ( location.getProxyHost() != null )
{
logger.debug( "Plan to use proxy for connection: host: {}, port: {}", location.getProxyHost(),
location.getProxyPort() );
final HttpRoutePlanner planner = new DefaultProxyRoutePlanner(
new HttpHost( location.getProxyHost(), getProxyPort( location ) ) );
builder.setRoutePlanner( planner );
Expand Down

0 comments on commit 1cc0f5e

Please sign in to comment.