dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21776
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10408: Reduced log level
------------------------------------------------------------
revno: 10408
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-03-22 14:56:53 +0100
message:
Reduced log level
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.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/data/DefaultAnalyticsService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java 2013-03-22 07:57:02 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java 2013-03-22 13:56:53 +0000
@@ -105,7 +105,6 @@
import org.hisp.dhis.system.util.ListUtils;
import org.hisp.dhis.system.util.MathUtils;
import org.hisp.dhis.system.util.SystemUtils;
-import org.hisp.dhis.system.util.Timer;
import org.hisp.dhis.user.CurrentUserService;
import org.hisp.dhis.user.User;
import org.springframework.beans.factory.annotation.Autowired;
@@ -376,14 +375,10 @@
*/
private Map<String, Double> getAggregatedValueMap( DataQueryParams params, String tableName )
{
- Timer t = new Timer().start();
-
int optimalQueries = MathUtils.getWithin( SystemUtils.getCpuCores(), 1, MAX_QUERIES );
List<DataQueryParams> queries = queryPlanner.planQuery( params, optimalQueries, tableName );
- t.getTime( "Planned query for optimal: " + optimalQueries + ", got: " + queries.size() );
-
List<Future<Map<String, Double>>> futures = new ArrayList<Future<Map<String, Double>>>();
Map<String, Double> map = new HashMap<String, Double>();
@@ -413,8 +408,6 @@
}
}
- t.getTime( "Got aggregated values" );
-
return map;
}
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java 2013-03-14 14:31:25 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/JdbcAnalyticsManager.java 2013-03-22 13:56:53 +0000
@@ -112,7 +112,7 @@
sql += getGroupByClause( params );
- log.info( sql );
+ log.debug( sql );
Map<String, Double> map = null;