tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r531081 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
Date Sat, 21 Apr 2007 18:53:12 GMT
Author: pero
Date: Sat Apr 21 11:53:12 2007
New Revision: 531081

URL: http://svn.apache.org/viewvc?view=rev&rev=531081
Log:
Add Missing isInfoEnabled checks
No functional change

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java?view=diff&rev=531081&r1=531080&r2=531081
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpFailureDetector.java
Sat Apr 21 11:53:12 2007
@@ -137,7 +137,9 @@
         if ( membership == null ) setupMembership();
         boolean notify = false;
         boolean shutdown = Arrays.equals(member.getCommand(),Member.SHUTDOWN_PAYLOAD);
-        if ( !shutdown ) log.info("Received memberDisappeared["+member+"] message. Will verify.");
+        if ( !shutdown ) 
+            if(log.isInfoEnabled())
+                log.info("Received memberDisappeared["+member+"] message. Will verify.");
         synchronized (membership) {
             //check to see if the member really is gone
             //if the payload is not a shutdown message
@@ -152,10 +154,12 @@
             }
         }
         if ( notify ) {
-            log.info("Verification complete. Member disappeared["+member+"]");
+            if(log.isInfoEnabled())
+                log.info("Verification complete. Member disappeared["+member+"]");
             super.memberDisappeared(member);
         } else {
-            log.info("Verification complete. Member still alive["+member+"]");
+            if(log.isInfoEnabled())
+                log.info("Verification complete. Member still alive["+member+"]");
 
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message