mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 16:49:43 +01:00
added another timer to pull #336
This commit is contained in:
@@ -134,13 +134,14 @@ public class CPEAnalyzer implements Analyzer {
|
|||||||
* process.
|
* process.
|
||||||
*/
|
*/
|
||||||
public void open() throws IOException, DatabaseException {
|
public void open() throws IOException, DatabaseException {
|
||||||
LOGGER.debug("Opening the CVE Database");
|
|
||||||
cve = new CveDB();
|
cve = new CveDB();
|
||||||
cve.open();
|
cve.open();
|
||||||
LOGGER.debug("Creating the Lucene CPE Index");
|
|
||||||
cpe = CpeMemoryIndex.getInstance();
|
cpe = CpeMemoryIndex.getInstance();
|
||||||
try {
|
try {
|
||||||
|
LOGGER.info("Creating the CPE Index");
|
||||||
|
final long creationStart = System.currentTimeMillis();
|
||||||
cpe.open(cve);
|
cpe.open(cve);
|
||||||
|
LOGGER.info("CPE Index Created ({} ms)", System.currentTimeMillis() - creationStart);
|
||||||
} catch (IndexException ex) {
|
} catch (IndexException ex) {
|
||||||
LOGGER.debug("IndexException", ex);
|
LOGGER.debug("IndexException", ex);
|
||||||
throw new DatabaseException(ex);
|
throw new DatabaseException(ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user