Browse files

remove spaces. One day I'll learn. I hope.

  • Loading branch information...
1 parent ee0057e commit fc3b6f68e259bf247491c53b144f993a312d90bf @jpiekos jpiekos committed Mar 19, 2012
Showing with 8 additions and 9 deletions.
  1. +8 −9 src/frontend/org/voltdb/VoltDB.java
View
17 src/frontend/org/voltdb/VoltDB.java
@@ -18,7 +18,6 @@
package org.voltdb;
import java.io.File;
-import java.io.PrintStream;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.Collections;
@@ -475,24 +474,24 @@ public static void crashLocalVoltDB(String errMsg, boolean stackTrace, Throwable
for (StackTraceElement ste : myTrace) {
stacktrace_sb.append(ste.toString()).append("\n");
}
-
+
// Create a special dump file to hold the stack trace
try
{
TimestampType ts = new TimestampType(new java.util.Date());
String root = VoltDB.instance().getCatalogContext().cluster.getVoltroot();
PrintWriter writer = new PrintWriter(root + File.separator + "voltdb_crash" + ts.toString().replace(' ', '-') + ".txt");
- writer.println("Time: " + ts);
+ writer.println("Time: " + ts);
writer.println("Message: " + errMsg);
-
+
writer.println();
writer.println("Platform Properties:");
PlatformProperties pp = PlatformProperties.getPlatformProperties();
String[] lines = pp.toLogLines().split("\n");
for (String line : lines) {
writer.println(line.trim());
}
-
+
writer.println();
writer.println("****** Current Thread ****** ");
writer.println(stacktrace_sb);
@@ -504,7 +503,7 @@ public static void crashLocalVoltDB(String errMsg, boolean stackTrace, Throwable
writer.println();
StackTraceElement[] st = traces.get(key);
writer.println("****** " + key + " ******");
- for (StackTraceElement ste : st)
+ for (StackTraceElement ste : st)
writer.println(ste);
}
writer.close();
@@ -529,11 +528,11 @@ public static void crashLocalVoltDB(String errMsg, boolean stackTrace, Throwable
log.fatal(errMsg, t);
else
log.fatal(errMsg);
-
- if (stackTrace)
+
+ if (stackTrace)
log.fatal(stacktrace_sb);
}
-
+
System.err.println("VoltDB has encountered an unrecoverable error and is exiting.");
System.err.println("The log may contain additional information.");
System.exit(-1);

0 comments on commit fc3b6f6

Please sign in to comment.