updated log levels when logging exceptions

Former-commit-id: 7686e0bb2ae8d6910d741869ed2aaa04c7a39213
This commit is contained in:
Jeremy Long
2014-02-22 15:50:20 -05:00
parent cd0e8e1c6b
commit c30c455a9f
8 changed files with 22 additions and 25 deletions

View File

@@ -124,10 +124,10 @@ public class App {
report.generateReports(reportDirectory, outputFormat);
} catch (IOException ex) {
Logger.getLogger(App.class.getName()).log(Level.SEVERE, "There was an IO error while attempting to generate the report.");
Logger.getLogger(App.class.getName()).log(Level.INFO, null, ex);
Logger.getLogger(App.class.getName()).log(Level.FINE, null, ex);
} catch (Exception ex) {
Logger.getLogger(App.class.getName()).log(Level.SEVERE, "There was an error while attempting to generate the report.");
Logger.getLogger(App.class.getName()).log(Level.INFO, null, ex);
Logger.getLogger(App.class.getName()).log(Level.FINE, null, ex);
}
}