Mercurial > dive4elements > river
changeset 1998:3862c50d1cf3
Added an INFO statement that displays the duration time for the out() operation.
flys-artifacts/trunk@3435 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 16 Dec 2011 10:50:19 +0000 |
parents | 210020108ca4 |
children | 02ce03329ef5 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Dec 16 10:35:08 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Dec 16 10:50:19 2011 +0000 @@ -1,3 +1,9 @@ +2011-12-16 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java: + Added an INFO message that displays the duration time for the out() + operation. + 2011-12-16 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Fri Dec 16 10:35:08 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Fri Dec 16 10:50:19 2011 +0000 @@ -273,6 +273,8 @@ CallContext context) throws IOException { + long reqBegin = System.currentTimeMillis(); + log.info("FLYSArtifactCollection.out"); String name = XMLUtils.xpathString( @@ -314,6 +316,9 @@ catch (ArtifactDatabaseException adbe) { log.error(adbe, adbe); } + + long duration = System.currentTimeMillis() -reqBegin; + log.info("Processing out(" + name + ") took " + duration + " ms."); }