added additional logging to try and solve issue #49

Former-commit-id: 5a4e804aa461b3d2603a70ee4aa79b236306d3cc
This commit is contained in:
Jeremy Long
2014-02-14 08:20:26 -05:00
parent 4ffd336c72
commit 30c88a2fe7

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();
}