[Dive4elements-commits] [PATCH 5 of 7] Importer: Emit log message when a dry run was run

Wald Commits scm-commit at wald.intevation.org
Wed Dec 19 11:36:31 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1355913619 -3600
# Node ID 45d05402b2a6dbe1c5eaf9747f3c26c738a2441e
# Parent  2b0426b79a920d420097635bcc0bea03dad7df83
Importer: Emit log message when a dry run was run.

diff -r 2b0426b79a92 -r 45d05402b2a6 flys-backend/src/main/java/de/intevation/flys/importer/Importer.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/Importer.java	Wed Dec 19 11:39:46 2012 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/Importer.java	Wed Dec 19 11:40:19 2012 +0100
@@ -145,6 +145,9 @@
         if (!Config.INSTANCE.dryRun()) {
             new Importer(infoGewParser.getRivers()).writeToDatabase();
         }
+        else {
+            log.info("Dry run, not writing to database.");
+        }
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list