mirror of https://github.com/apache/nifi.git
NIFI-3164 Added NAR loading duration
This closes #1366. Signed-off-by: James Wing <jvwing@gmail.com>
This commit is contained in:
parent
5c095f3a18
commit
4986b83b83
|
@ -91,6 +91,7 @@ public final class NarUnpacker {
|
|||
}
|
||||
|
||||
if (!narFiles.isEmpty()) {
|
||||
final long startTime = System.nanoTime();
|
||||
logger.info("Expanding " + narFiles.size() + " NAR files with all processors... It can take few minutes.");
|
||||
for (File narFile : narFiles) {
|
||||
logger.debug("Expanding NAR file: " + narFile.getAbsolutePath());
|
||||
|
@ -146,6 +147,8 @@ public final class NarUnpacker {
|
|||
}
|
||||
}
|
||||
}
|
||||
final long endTime = System.nanoTime();
|
||||
logger.info("NAR loading process took " + (endTime - startTime) + " nanoseconds.");
|
||||
}
|
||||
|
||||
// attempt to delete any docs files that exist so that any
|
||||
|
|
Loading…
Reference in New Issue