Skip to content

Commit 848acae

Browse files
authored
Merge pull request #453 from yma96/master
Add timeout exception log for proxy usage
2 parents 16afbeb + 1ea3cca commit 848acae

File tree

1 file changed

+3
-0
lines changed
  • transports/httpclient/src/main/java/org/commonjava/maven/galley/transport/htcli/internal

1 file changed

+3
-0
lines changed

transports/httpclient/src/main/java/org/commonjava/maven/galley/transport/htcli/internal/AbstractHttpJob.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ else if ( !successStatuses.contains( sc ) )
147147
catch ( final NoHttpResponseException | ConnectTimeoutException | SocketTimeoutException |
148148
HttpHostConnectException e )
149149
{
150+
logger.warn(
151+
"Timeout for url: {}, site: {}, could try to access with proxy, tries:{}, doProxy: {}, Reason: {}", url,
152+
site, tries, doProxy, e.getMessage() );
150153
// For those are not in the iad2 tenant egress rules, will throw timeout so use the configured proxy to retry
151154
if ( tries > 0 )
152155
{

0 commit comments

Comments
 (0)