summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-07-17 08:26:33 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-07-17 08:26:33 +0000
commit8a4f51a91860724aefe63049268567e99d822ddd (patch)
tree2eabf5ea38ee6f16cb7d3a551d813439729f3241
parentde101b44ea3dff22bb62dfb5a14bc5cb1a255b52 (diff)
downloadqpid-python-8a4f51a91860724aefe63049268567e99d822ddd.tar.gz
Additional logging in case of broker failure at startup.
Use broker logger at error level as well as System.out git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@556845 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/broker/src/main/java/org/apache/qpid/server/Main.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/Main.java b/java/broker/src/main/java/org/apache/qpid/server/Main.java
index 5b0645ff3d..baf3c5bc61 100644
--- a/java/broker/src/main/java/org/apache/qpid/server/Main.java
+++ b/java/broker/src/main/java/org/apache/qpid/server/Main.java
@@ -27,7 +27,6 @@ import java.net.InetSocketAddress;
import java.net.BindException;
import java.util.Collection;
import java.util.List;
-import java.util.StringTokenizer;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.HelpFormatter;
@@ -192,15 +191,19 @@ public class Main
catch (InitException e)
{
System.out.println(e.getMessage());
+ _brokerLogger.error("Initialisation Error : " + e.getMessage());
+
}
catch (ConfigurationException e)
{
System.out.println("Error configuring message broker: " + e);
+ _brokerLogger.error("Error configuring message broker: " + e);
e.printStackTrace();
}
catch (Exception e)
{
System.out.println("Error intialising message broker: " + e);
+ _brokerLogger.error("Error intialising message broker: " + e);
e.printStackTrace();
}
}