From 784b78b17c06ab3ce0ec1c35834bafb7d5a4a82f Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 5 Sep 2015 21:07:29 -0400 Subject: [PATCH] added another timer to pull #336 --- .../java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java index ff737c451..e153ff2a3 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java @@ -134,13 +134,14 @@ public class CPEAnalyzer implements Analyzer { * process. */ public void open() throws IOException, DatabaseException { - LOGGER.debug("Opening the CVE Database"); cve = new CveDB(); cve.open(); - LOGGER.debug("Creating the Lucene CPE Index"); cpe = CpeMemoryIndex.getInstance(); try { + LOGGER.info("Creating the CPE Index"); + final long creationStart = System.currentTimeMillis(); cpe.open(cve); + LOGGER.info("CPE Index Created ({} ms)", System.currentTimeMillis() - creationStart); } catch (IndexException ex) { LOGGER.debug("IndexException", ex); throw new DatabaseException(ex);