More changes to the log system.

This commit is contained in:
Chris Cromer 2016-07-05 10:27:26 -04:00
parent 5d2bd06d42
commit 391f1d549d
3 changed files with 2 additions and 6 deletions

View File

@ -85,7 +85,7 @@ public class Logs {
Logger.getLogger(LOGNAME).log(level, mensaje); Logger.getLogger(LOGNAME).log(level, mensaje);
} }
else { else {
System.out.println(mensaje); System.out.println(mensaje + "\n");
} }
} }
} }

View File

@ -49,8 +49,7 @@ public class Main extends Application {
} }
catch (IOException exception) { catch (IOException exception) {
// Este error es fatal, hay que cerrar la aplicación. // Este error es fatal, hay que cerrar la aplicación.
Logs.log(Level.SEVERE, "No se pudo abrir el archivo de fxml."); Logs.log(Level.SEVERE, exception);
Logs.log(Level.SEVERE, exception.getMessage());
stage.close(); stage.close();
} }
@ -69,7 +68,6 @@ public class Main extends Application {
catch (Exception exception) { catch (Exception exception) {
Logs.log(Level.SEVERE, exception); Logs.log(Level.SEVERE, exception);
} }
logs.close(); logs.close();
} }

View File

@ -355,7 +355,6 @@ public class MenuController extends VBox implements Initializable {
} }
catch (IOException exception) { catch (IOException exception) {
// Este error es fatal, hay que cerrar la aplicación. // Este error es fatal, hay que cerrar la aplicación.
Logs.log(Level.SEVERE, "No se pudo abrir el archivo de fxml.");
Logs.log(Level.SEVERE, exception); Logs.log(Level.SEVERE, exception);
stage.close(); stage.close();
} }
@ -372,7 +371,6 @@ public class MenuController extends VBox implements Initializable {
} }
catch (IOException exception) { catch (IOException exception) {
// Este error es fatal, hay que cerrar la aplicación. // Este error es fatal, hay que cerrar la aplicación.
Logs.log(Level.SEVERE, "No se pudo abrir el archivo de fxml.");
Logs.log(Level.SEVERE, exception); Logs.log(Level.SEVERE, exception);
stage.close(); stage.close();
} }