Commit d8f4ce67 authored by Jonathan Shahen's avatar Jonathan Shahen

Clean up

parent 3731938f
......@@ -3,6 +3,8 @@ package mohawk.converter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.logging.ConsoleHandler;
import java.util.logging.FileHandler;
import java.util.logging.Level;
......@@ -155,9 +157,9 @@ public class ConverterInstance {
logger.info(timing.toString());
} catch (Exception e) {
if (logger.getLevel() == Level.FINEST) {
e.printStackTrace();
}
StringWriter errors = new StringWriter();
e.printStackTrace(new PrintWriter(errors));
logger.severe(errors.toString());
logger.severe(e.getMessage());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment