More exception outputting.

This commit is contained in:
Fabian Schlenz 2017-02-17 06:34:20 +01:00
parent d9667211a4
commit e0668926c9
2 changed files with 4 additions and 2 deletions

View File

@ -176,6 +176,7 @@ public class CommandLineController {
}
} catch (Exception e) {
e.printStackTrace();
logger.error("Exception caught!", e);
} finally {
if (CommandLineOptions.cmd_daemon) {
handler.setUser(user, client);

View File

@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
public class HTMLExporter {
private static Logger logger = LoggerFactory.getLogger(HTMLExporter.class);
public void export(UserManager user) {
public void export(UserManager user) throws IOException {
try {
Database db = new Database(user, null);
@ -147,7 +147,8 @@ public class HTMLExporter {
logger.debug("Done exporting.");
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Exception above!");
logger.error("Caught an exception!", e);
throw e;
}
}