activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r926165 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java
Date Mon, 22 Mar 2010 16:34:49 GMT
Author: rajdavies
Date: Mon Mar 22 16:34:49 2010
New Revision: 926165

URL: http://svn.apache.org/viewvc?rev=926165&view=rev
Log:
remove Log messages from BrokerInfo to so JmsAppender works

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java?rev=926165&r1=926164&r2=926165&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java
Mon Mar 22 16:34:49 2010
@@ -20,8 +20,6 @@ import java.io.IOException;
 import java.util.Properties;
 import org.apache.activemq.state.CommandVisitor;
 import org.apache.activemq.util.MarshallingSupport;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 
 /**
  * When a client connects to a broker, the broker send the client a BrokerInfo
@@ -33,7 +31,6 @@ import org.apache.commons.logging.LogFac
  * @version $Revision: 1.7 $
  */
 public class BrokerInfo extends BaseCommand {
-    private static Log LOG = LogFactory.getLog(BrokerInfo.class);
     private static final String PASSIVE_SLAVE_KEY = "passiveSlave";
     public static final byte DATA_STRUCTURE_TYPE = CommandTypes.BROKER_INFO;
     BrokerId brokerId;
@@ -255,7 +252,7 @@ public class BrokerInfo extends BaseComm
         try {
             this.networkProperties=MarshallingSupport.propertiesToString(props);
         } catch (IOException e) {
-            LOG.error("Failed to marshall props to a String",e);
+            e.printStackTrace();
         }
     }
     
@@ -264,7 +261,7 @@ public class BrokerInfo extends BaseComm
         try {
             result = MarshallingSupport.stringToProperties(getNetworkProperties());
         } catch (IOException e) {
-            LOG.error("Failed to marshall properties", e);
+           e.printStackTrace();
         }
         return result;
     }



Mime
View raw message