Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 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 | 85132c9edd64 |
children | 02ce03329ef5 |
comparison
equal
deleted
inserted
replaced
1997:210020108ca4 | 1998:3862c50d1cf3 |
---|---|
271 Document format, | 271 Document format, |
272 OutputStream out, | 272 OutputStream out, |
273 CallContext context) | 273 CallContext context) |
274 throws IOException | 274 throws IOException |
275 { | 275 { |
276 long reqBegin = System.currentTimeMillis(); | |
277 | |
276 log.info("FLYSArtifactCollection.out"); | 278 log.info("FLYSArtifactCollection.out"); |
277 | 279 |
278 String name = XMLUtils.xpathString( | 280 String name = XMLUtils.xpathString( |
279 format, XPATH_OUT_NAME, ArtifactNamespaceContext.INSTANCE); | 281 format, XPATH_OUT_NAME, ArtifactNamespaceContext.INSTANCE); |
280 | 282 |
312 generator.generate(); | 314 generator.generate(); |
313 } | 315 } |
314 catch (ArtifactDatabaseException adbe) { | 316 catch (ArtifactDatabaseException adbe) { |
315 log.error(adbe, adbe); | 317 log.error(adbe, adbe); |
316 } | 318 } |
319 | |
320 long duration = System.currentTimeMillis() -reqBegin; | |
321 log.info("Processing out(" + name + ") took " + duration + " ms."); | |
317 } | 322 } |
318 | 323 |
319 | 324 |
320 /** | 325 /** |
321 * Sets the master Artifact at the given <i>generator</i>. | 326 * Sets the master Artifact at the given <i>generator</i>. |