cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1065627 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Date Mon, 31 Jan 2011 14:45:33 GMT
Author: jbellis
Date: Mon Jan 31 14:45:33 2011
New Revision: 1065627

URL: http://svn.apache.org/viewvc?rev=1065627&view=rev
Log:
include stacktrace for configuration errors in system log

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/config/DatabaseDescriptor.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/config/DatabaseDescriptor.java?rev=1065627&r1=1065626&r2=1065627&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Mon Jan 31 14:45:33 2011
@@ -374,19 +374,19 @@ public class    DatabaseDescriptor
         }
         catch (UnknownHostException e)
         {
-            logger.error("Fatal error: " + e.getMessage());
+            logger.error("Fatal configuration error ", e);
             System.err.println("Unable to start with unknown hosts configured.  Use IP addresses
instead of hostnames.");
             System.exit(2);
         }
         catch (ConfigurationException e)
         {
-            logger.error("Fatal error: " + e.getMessage());
+            logger.error("Fatal configuration error", e);
             System.err.println("Bad configuration; unable to start server");
             System.exit(1);
         }
         catch (YAMLException e)
         {
-            logger.error("Fatal error: " + e.getMessage());
+            logger.error("Fatal configuration error error", e);
             System.err.println("Bad configuration; unable to start server");
             System.exit(1);
         }



Mime
View raw message