This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch activemq-5.17.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-5.17.x by this push:
     new 450d22204 AMQ-9438: Don't log full stack trace when lookup failure 
happens in FailoverTransport
450d22204 is described below

commit 450d22204033d68fc5bb1b4a05158fe99cb69d9b
Author: Jean-Baptiste Onofré <[email protected]>
AuthorDate: Sat Mar 2 07:17:34 2024 +0100

    AMQ-9438: Don't log full stack trace when lookup failure happens in 
FailoverTransport
    
    (cherry picked from commit ea92ade33ad6e0fe0517ffbe2e62881a9647887e)
---
 .../org/apache/activemq/transport/failover/FailoverTransport.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
 
b/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
index 76062e417..ab4495f08 100644
--- 
a/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
+++ 
b/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
@@ -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())) {

Reply via email to