updated log levels when logging exceptions

Former-commit-id: 343daf8cf4176d1bb810d7ecd30d56c8cdc6bf4d
This commit is contained in:
Jeremy Long
2014-02-22 15:50:20 -05:00
parent 221537601f
commit 303a3ac376
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);
}
}