From 7afc36064bdb74dceb2f98682e1970f8543cdef5 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Thu, 7 Jul 2016 15:12:32 +1000 Subject: [PATCH] Issue #678 --- .../eclipse/jetty/annotations/AnnotationConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java index 0ef01a78c2f..fcab2ac596a 100644 --- a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java +++ b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java @@ -559,6 +559,9 @@ public class AnnotationConfiguration extends AbstractConfiguration } boolean timeout = !latch.await(getMaxScanWait(context), TimeUnit.SECONDS); + long elapsedMs = TimeUnit.MILLISECONDS.convert(System.nanoTime()-start, TimeUnit.NANOSECONDS); + + LOG.info("Scanning elapsed time={}ms",elapsedMs); if (LOG.isDebugEnabled()) { @@ -567,7 +570,7 @@ public class AnnotationConfiguration extends AbstractConfiguration LOG.debug("Scanned {} container path jars, {} WEB-INF/lib jars, {} WEB-INF/classes dirs in {}ms for context {}", _containerPathStats.getTotal(), _webInfLibStats.getTotal(), _webInfClassesStats.getTotal(), - (TimeUnit.MILLISECONDS.convert(System.nanoTime()-start, TimeUnit.NANOSECONDS)), + elapsedMs, context); }