]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3621: Increasing log level of post-init operations that add indices or modify...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 7 Mar 2011 23:07:44 +0000 (23:07 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 7 Mar 2011 23:07:44 +0000 (23:07 +0000)
services/common/src/main/java/org/collectionspace/services/common/init/AddIndices.java
services/common/src/main/java/org/collectionspace/services/common/init/ModifyFieldDatatypes.java

index 1b4a5438fa5df1ef81fae73f5a9efae17597c8ca..617f20fc7edd75bf201d0b8a3cf0b948c4e0cac8 100755 (executable)
@@ -122,11 +122,11 @@ public class AddIndices extends InitHandler implements IInitHandler {
             // mechanism for retrieving and populating catalog/DDL-type SQL statements\r
             // appropriate to a particular database product.\r
             if (databaseProductType == DatabaseProductType.MYSQL) {\r
-                 logger.trace("Creating index for column " + columnName + " in table " + tableName);\r
+                 logger.info("Creating index for column " + columnName + " in table " + tableName);\r
                  sql = "CREATE INDEX " + indexName + " ON " + tableName + " (" + columnName + ")";\r
             } else if (databaseProductType == DatabaseProductType.POSTGRESQL) {\r
-                 logger.trace("Creating index for column " + columnName + " in table " + tableName);\r
-                sql = "CREATE INDEX ON " + tableName + " (" + columnName + ")";\r
+                 logger.info("Creating index for column " + columnName + " in table " + tableName);\r
+                 sql = "CREATE INDEX ON " + tableName + " (" + columnName + ")";\r
             } else {\r
                 throw new Exception("Unrecognized database system " + databaseProductType);\r
             }\r
index 7678df18475eb89bd875d62a01431611a0557d8a..bde2aeaa4e3a5157bee47095dd9a6a45d229ca69 100644 (file)
@@ -72,11 +72,13 @@ public class ModifyFieldDatatypes extends InitHandler implements IInitHandler {
                 // mechanism for retrieving and populating catalog/DDL-type SQL statements
                 // appropriate to a particular database product.
                 if (databaseProductType == DatabaseProductType.MYSQL) {
-                    logger.trace("Modifying field " + field.getTable() + "."
+                    logger.info("Modifying field " + field.getTable() + "."
                             + field.getCol() + " to datatype " + datatype);
                     sql = "ALTER TABLE " + field.getTable() + " MODIFY COLUMN " + field.getCol() + " " + datatype;
                 } else if (databaseProductType == DatabaseProductType.POSTGRESQL) {
-                        sql = "ALTER TABLE " + field.getTable() + " ALTER COLUMN " + field.getCol() + " " + datatype;
+                    logger.info("Modifying field " + field.getTable() + "."
+                            + field.getCol() + " to datatype " + datatype);
+                    sql = "ALTER TABLE " + field.getTable() + " ALTER COLUMN " + field.getCol() + " " + datatype;
                 } else {
                     throw new Exception("Unrecognized database system.");
                 }