mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 16:49:43 +01:00
added additional logging to try and solve issue #49
Former-commit-id: 5a4e804aa461b3d2603a70ee4aa79b236306d3cc
This commit is contained in:
@@ -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.";
|
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.SEVERE, msg);
|
||||||
Logger.getLogger(DBUtils.class.getName()).log(Level.FINE, null, ex);
|
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;
|
conn = null;
|
||||||
}
|
}
|
||||||
@@ -128,7 +132,9 @@ public class CveDB {
|
|||||||
* @throws Throwable thrown if there is a problem
|
* @throws Throwable thrown if there is a problem
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("FinalizeDeclaration")
|
||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
|
Logger.getLogger(DBUtils.class.getName()).log(Level.FINE, "Entering finalize");
|
||||||
close();
|
close();
|
||||||
super.finalize();
|
super.finalize();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user