changeset 975:a111f0984706

meta data service: Added 'if log.isDebugEnabled() {}' flys-artifacts/trunk@2401 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 25 Jul 2011 12:56:53 +0000
parents 30c85cb33a50
children d830c398c8f4
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Jul 25 11:05:33 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Jul 25 12:56:53 2011 +0000
@@ -1,4 +1,9 @@
-2011-07-21  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+2011-07-25  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java:
+	  Added 'if log.isDebugEnabled() {}'.
+
+2011-07-25  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java:
 	  Made Artifact UUID optional and accept extra parameters, too. This enables
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java	Mon Jul 25 11:05:33 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java	Mon Jul 25 12:56:53 2011 +0000
@@ -144,9 +144,11 @@
 
         FLYSArtifact flysArtifact;
 
-        log.debug("uuid: " + uuid);
-        log.debug("outs: " + outsString);
-        log.debug("filters: " + filters);
+        if (log.isDebugEnabled()) {
+            log.debug("uuid: " + uuid);
+            log.debug("outs: " + outsString);
+            log.debug("filters: " + filters);
+        }
 
         if (uuid != null && uuid.length() != 0) {
             if (!StringUtils.checkUUID(uuid)) {

http://dive4elements.wald.intevation.org