changeset 14:034df8d5c923

output better information.
author casties
date Fri, 10 Apr 2015 10:40:21 +0000
parents 85dddb9d54ef
children 728549225b02
files src/main/java/org/mpi/openmind/scripts/FixRelationNonCurrent.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/scripts/FixRelationNonCurrent.java	Fri Apr 10 09:30:38 2015 +0000
+++ b/src/main/java/org/mpi/openmind/scripts/FixRelationNonCurrent.java	Fri Apr 10 10:40:21 2015 +0000
@@ -79,7 +79,7 @@
         for (Long id : relSourceIds) {
             System.out.println("RELATION "+id+" source is not CURRENT_VERSION");
             if (updateCurrentRelation(id, "source", conn)) {
-                System.out.println("  RELATION "+id+" target updated to current version");
+                System.out.println("  RELATION "+id+" source updated to current version");
                 fixedSs += 1;
             } else {
                 System.out.println("  ERROR: RELATION "+id+" was not fixed!");
@@ -198,7 +198,7 @@
                     Statement sUpdate = conn.createStatement();
                     int rUpdate = sUpdate.executeUpdate(qUpdate);
                     sUpdate.close();
-                    System.out.println("  relation " + target_id + " " + type + " was updated to " + target_mtime);
+                    System.out.println("  relation " + type + " " + target_id + " was updated to " + target_mtime);
                     return true;
                 } else {
                     System.out.println("ERROR: relation " + type + " " + target_id + " has " + target_mtimes.size() + " CURRENT_VERSIONs");