[PATCH] Debug message added

Wald Commits scm-commit at wald.intevation.org
Tue Dec 11 17:08:56 CET 2018


# HG changeset patch
# User mschaefer
# Date 1544544516 -3600
# Node ID 67a42c9c46a7f8d1dba47c6e662108a37708c3e8
# Parent  3dfcb6e1c4d682797bc6c73eb137041a58c78b6a
Debug message added

diff -r 3dfcb6e1c4d6 -r 67a42c9c46a7 backend/src/main/java/org/dive4elements/river/importer/sinfo/parsers/CollisionParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/sinfo/parsers/CollisionParser.java	Tue Dec 11 14:40:36 2018 +0100
+++ b/backend/src/main/java/org/dive4elements/river/importer/sinfo/parsers/CollisionParser.java	Tue Dec 11 17:08:36 2018 +0100
@@ -33,6 +33,7 @@
 import org.dive4elements.river.model.sinfo.Collision;
 import org.dive4elements.river.model.sinfo.CollisionType;
 import org.dive4elements.river.model.sinfo.CollisionValue;
+import org.hibernate.Session;
 
 /**
  * Reads and parses a collision file
@@ -76,8 +77,10 @@
 
     public CollisionParser(final File importPath, final File rootRelativePath, final ImportRiver river) {
         super(importPath, rootRelativePath, river);
+        logDebug("CollisionParser.new: calling ImporterSession.getInstance");
+        final Session session = ImporterSession.getInstance().getDatabaseSession();
         this.types = new HashMap<>();
-        for (final CollisionType type : CollisionType.getTypes(ImporterSession.getInstance().getDatabaseSession()))
+        for (final CollisionType type : CollisionType.getTypes(session))
             this.types.put(type.getName().trim().toLowerCase(), new CollisionTypeImport(type.getName()));
     }
 


More information about the Dive4Elements-commits mailing list