From c9addfb50e85b1b438789ca4f3c066f1d4d47312 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Mon, 22 Mar 2010 16:34:49 +0000 Subject: [PATCH] remove Log messages from BrokerInfo to so JmsAppender works git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@926165 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/activemq/command/BrokerInfo.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java b/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java index 91db7191cc..9bd30b9dd6 100755 --- a/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java +++ b/activemq-core/src/main/java/org/apache/activemq/command/BrokerInfo.java @@ -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.LogFactory; * @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 BaseCommand { 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 BaseCommand { try { result = MarshallingSupport.stringToProperties(getNetworkProperties()); } catch (IOException e) { - LOG.error("Failed to marshall properties", e); + e.printStackTrace(); } return result; }