Do not hide various errors under "connect timeout" message (#2057)

Co-authored-by: Ryan Baxter <rbaxter@vmware.com>
This commit is contained in:
Fedor Bobin
2023-02-08 20:03:33 +03:00
committed by GitHub
parent e0242963aa
commit eaa59f9985
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;
}