← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18650: Analytics tables, logging

 

------------------------------------------------------------
revno: 18650
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-03-20 15:18:25 +0100
message:
  Analytics tables, logging
modified:
  dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.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-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java	2015-03-03 16:18:51 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/DefaultAnalyticsTableService.java	2015-03-20 14:18:25 +0000
@@ -110,8 +110,9 @@
         Date earliest = PartitionUtils.getEarliestDate( lastYears );
         
         final List<AnalyticsTable> tables = tableManager.getTables( earliest );
+        final String tableName = tableManager.getTableName();
         
-        clock.logTime( "Partition tables: " + tables + ", last years: " + lastYears + ", earliest: " + earliest );        
+        clock.logTime( "Table update start: " + tableName + ", partitions: " + tables + ", last years: " + lastYears + ", earliest: " + earliest );        
         notifier.notify( taskId, "Creating analytics tables, processes: " + processNo + ", org unit levels: " + orgUnitLevelNo );
         
         createTables( tables );
@@ -146,7 +147,7 @@
 
         partitionManager.clearCaches();
 
-        clock.logTime( "Table update done" );
+        clock.logTime( "Table update done: " + tableName );
         notifier.notify( taskId, "Table update done" );
     }