dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34897
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17902: Analytic, reduced logging
------------------------------------------------------------
revno: 17902
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-01-07 10:52:24 +0100
message:
Analytic, reduced logging
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.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/AbstractJdbcTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java 2015-01-06 21:00:39 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java 2015-01-07 09:52:24 +0000
@@ -164,11 +164,11 @@
final String sql = "create index " + indexName + " on " + inx.getTable() + " (" + inx.getColumn() + ")";
- log.debug( "Create index SQL: " + sql );
+ log.debug( "Create index: " + indexName + " SQL: " + sql );
jdbcTemplate.execute( sql );
- log.info( "Created index: " + indexName );
+ log.debug( "Created index: " + indexName );
}
return null;
@@ -299,7 +299,7 @@
*/
protected void populateAndLog( String sql, String tableName )
{
- log.info( "Populating " + tableName );
+ log.debug( "Populate table: " + tableName + " SQL: " + sql );
Timer t = new SystemTimer().start();
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java 2015-01-06 21:00:39 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcAnalyticsTableManager.java 2015-01-07 09:52:24 +0000
@@ -386,7 +386,7 @@
sql.append( " where level > " + aggregationLevel );
sql.append( " and de in (" + getQuotedCommaDelimitedString( dataElements ) + ")" );
- log.info( "Aggregation level SQL: " + sql.toString() );
+ log.debug( "Aggregation level SQL: " + sql.toString() );
jdbcTemplate.execute( sql.toString() );
}
@@ -409,7 +409,7 @@
final String sql = statementBuilder.getVacuum( table.getTempTableName() );
- log.info( "Vacuum SQL: " + sql );
+ log.debug( "Vacuum SQL: " + sql );
jdbcTemplate.execute( sql );
}