AMQ-9438: Don't log full stack trace when lookup failure happens in FailoverTransport

This commit is contained in:
Jean-Baptiste Onofré 2024-03-02 07:17:34 +01:00
parent 85eb0f2df8
commit ea92ade33a
1 changed files with 4 additions and 2 deletions

View File

@ -1399,9 +1399,11 @@ public class FailoverTransport implements CompositeTransport {
} catch(IOException e) {
if (firstAddr == null) {
LOG.error("Failed to Lookup INetAddress for URI[{}] : {}", first, e);
LOG.error("Failed to Lookup INetAddress for URI[{}]", first);
LOG.debug("Lookup Failure stack trace", e);
} else {
LOG.error("Failed to Lookup INetAddress for URI[{}] : {}", second, e);
LOG.error("Failed to Lookup INetAddress for URI[{}]", second);
LOG.debug("Lookup Failure stack trace", e);
}
if (first.getHost().equalsIgnoreCase(second.getHost())) {