added additional logging to try and solve issue #49

Former-commit-id: d037f74eb5a9ddabfb6ce202d96870f2b7277c21
This commit is contained in:
Jeremy Long
2014-02-14 08:20:26 -05:00
parent eb9afecd66
commit 0c9f2bf5d2

View File

@@ -96,6 +96,10 @@ public class CveDB {
final String msg = "There was an error attempting to close the CveDB, see the log for more details.";
Logger.getLogger(DBUtils.class.getName()).log(Level.SEVERE, msg);
Logger.getLogger(DBUtils.class.getName()).log(Level.FINE, null, ex);
} catch (Throwable ex) {
final String msg = "There was an exception attempting to close the CveDB, see the log for more details.";
Logger.getLogger(DBUtils.class.getName()).log(Level.SEVERE, msg);
Logger.getLogger(DBUtils.class.getName()).log(Level.FINE, null, ex);
}
conn = null;
}
@@ -128,7 +132,9 @@ public class CveDB {
* @throws Throwable thrown if there is a problem
*/
@Override
@SuppressWarnings("FinalizeDeclaration")
protected void finalize() throws Throwable {
Logger.getLogger(DBUtils.class.getName()).log(Level.FINE, "Entering finalize");
close();
super.finalize();
}