changeset 9464:c77255da734b

cross-section logs removed
author gernotbelger
date Thu, 30 Aug 2018 10:53:40 +0200
parents 80800fe126cd
children be9bd06a1e3f
files artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.java backend/src/main/java/org/dive4elements/river/model/CrossSection.java
diffstat 2 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.java	Wed Aug 29 18:34:10 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.java	Thu Aug 30 10:53:40 2018 +0200
@@ -124,9 +124,7 @@
         final String newString = (isNewest) ? "1" : "0";
         addStringData(DATA_IS_NEWEST, newString);
         addStringData(DATA_IS_MASTER, newString);
-        final StringBuilder builder = new StringBuilder();
-        builder.append("CrossSectionArtifact line 128 cross_section_id = ").append(cs.getId()).append(" IS_START? : ").append(String.valueOf(isNewest));
-        log.debug(builder.toString());
+
         if (!fs.isEmpty()) {
             addFacets(getCurrentStateId(), fs);
         }
--- a/backend/src/main/java/org/dive4elements/river/model/CrossSection.java	Wed Aug 29 18:34:10 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/CrossSection.java	Thu Aug 30 10:53:40 2018 +0200
@@ -195,14 +195,8 @@
         final List<Integer> results = sqlQuery.list();
 
         if (results.size() >= 1) {
-            final String resultIds = results.toArray().toString();
-            final StringBuilder builder = new StringBuilder();
-            builder.append("CrossSection line 243 ID = ").append(getId()).append(", Result SIZE = ").append(results.size()).append(", Result_Ids = ")
-                    .append(resultIds);
-            log.debug(builder.toString());
-
             final Integer result = results.get(0);
-            if (result.equals(getId())) {
+            if (result.equals(getId())) { // NIEMALS OBJEKTE MIT "==" VERGLEICHEN!
                 return true;
             }
         } else {

http://dive4elements.wald.intevation.org