← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9710: updated to log.info if uid-uniqueness constraint could not be created

 

------------------------------------------------------------
revno: 9710
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-02-04 22:12:08 +0700
message:
  updated to log.info if uid-uniqueness constraint could not be created
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java	2012-12-13 14:23:40 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java	2013-02-04 15:12:08 +0000
@@ -147,16 +147,16 @@
                 statement.close();
             }
         }
-        
+
         createUidConstraints();
     }
-    
+
     private void createUidConstraints()
     {
         for ( String table : tables )
         {
             StatementHolder holder = statementManager.getHolder();
-            
+
             try
             {
                 final String sql = "ALTER TABLE " + table + " ADD CONSTRAINT " + table + "_uid_key UNIQUE(uid)";
@@ -164,7 +164,7 @@
             }
             catch ( Exception ex )
             {
-                log.debug( "Could not create uid constraint on table " + table + 
+                log.info( "Could not create uid constraint on table " + table +
                     ", might already be created or column contains duplicates", ex );
             }
             finally