mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-17 23:04:07 +01:00
added additional verbose logging
Former-commit-id: 49f9467ab33a3d260b295a938bac702358a522c6
This commit is contained in:
@@ -21,7 +21,6 @@ package org.owasp.dependencycheck.analyzer;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -101,16 +100,10 @@ public class CPEAnalyzer implements Analyzer {
|
|||||||
* usually occurs when the database is in use by another process.
|
* usually occurs when the database is in use by another process.
|
||||||
*/
|
*/
|
||||||
public void open() throws IOException, DatabaseException {
|
public void open() throws IOException, DatabaseException {
|
||||||
|
Logger.getLogger(CPEAnalyzer.class.getName()).log(Level.FINE, "Opening the CVE Database");
|
||||||
cve = new CveDB();
|
cve = new CveDB();
|
||||||
try {
|
cve.open();
|
||||||
cve.open();
|
Logger.getLogger(CPEAnalyzer.class.getName()).log(Level.FINE, "Creating the Lucene CPE Index");
|
||||||
} catch (SQLException ex) {
|
|
||||||
Logger.getLogger(CPEAnalyzer.class.getName()).log(Level.FINE, null, ex);
|
|
||||||
throw new DatabaseException("Unable to open the cve db", ex);
|
|
||||||
} catch (ClassNotFoundException ex) {
|
|
||||||
Logger.getLogger(CPEAnalyzer.class.getName()).log(Level.FINE, null, ex);
|
|
||||||
throw new DatabaseException("Unable to open the cve db", ex);
|
|
||||||
}
|
|
||||||
cpe = CpeMemoryIndex.getInstance();
|
cpe = CpeMemoryIndex.getInstance();
|
||||||
try {
|
try {
|
||||||
cpe.open(cve);
|
cpe.open(cve);
|
||||||
|
|||||||
Reference in New Issue
Block a user