Do not hide various errors under "connect timeout" message (#2057)
Co-authored-by: Ryan Baxter <rbaxter@vmware.com>
This commit is contained in:
@@ -315,7 +315,7 @@ public class ConfigServerConfigDataLoader implements ConfigDataLoader<ConfigServ
|
||||
}
|
||||
}
|
||||
catch (ResourceAccessException e) {
|
||||
logger.info("Connect Timeout Exception on Url - " + uri + ". Will try the next url if available");
|
||||
logger.info("Exception on Url - " + uri + ":" + e + ". Will be trying the next url if available");
|
||||
if (i == noOfUrls - 1) {
|
||||
throw e;
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ public class ConfigServicePropertySourceLocator implements PropertySourceLocator
|
||||
}
|
||||
}
|
||||
catch (ResourceAccessException e) {
|
||||
logger.info("Connect Timeout Exception on Url - " + uri + ". Will try the next url if available");
|
||||
logger.info("Exception on Url - " + uri + ":" + e + ". Will be trying the next url if available");
|
||||
if (i == noOfUrls - 1) {
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user