minor changes for reducing console logging
This commit is contained in:
+6
-1
@@ -3,15 +3,20 @@ package org.mifosplatform.commands.service;
|
||||
import org.mifosplatform.infrastructure.core.api.PortfolioApiDataConversionService;
|
||||
import org.mifosplatform.infrastructure.core.serialization.CommandSerializer;
|
||||
import org.mifosplatform.infrastructure.core.serialization.DefaultToApiJsonSerializer;
|
||||
import org.mifosplatform.infrastructure.dataqueries.service.ReadWriteNonCoreDataServiceImpl;
|
||||
import org.mifosplatform.portfolio.client.command.ClientCommand;
|
||||
import org.mifosplatform.portfolio.client.data.ClientData;
|
||||
import org.mifosplatform.portfolio.client.service.ClientReadPlatformService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ChangeDetectionServiceJdbc implements ChangeDetectionService {
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(ChangeDetectionServiceJdbc.class);
|
||||
|
||||
private final PortfolioApiDataConversionService apiDataConversionService;
|
||||
private final ClientReadPlatformService clientReadPlatformService;
|
||||
private final CommandSerializer commandSerializerService;
|
||||
@@ -29,7 +34,7 @@ public class ChangeDetectionServiceJdbc implements ChangeDetectionService {
|
||||
|
||||
@Override
|
||||
public String detectChangesOnUpdate(final String resourceName, final Long resourceId, final String commandSerializedAsJson) {
|
||||
|
||||
logger.info(resourceName + ": ID: " + resourceId + " JSON: " + commandSerializedAsJson);
|
||||
String changesOnlyJson = "";
|
||||
|
||||
if ("clients".equalsIgnoreCase(resourceName)) {
|
||||
|
||||
+5
-5
@@ -64,7 +64,7 @@ public class GenericDataServiceImpl implements GenericDataService {
|
||||
}
|
||||
|
||||
long elapsed = System.currentTimeMillis() - startTime;
|
||||
logger.info("Elapsed Time: " + elapsed + " SQL: " + sql);
|
||||
//logger.info("Elapsed Time: " + elapsed + " SQL: " + sql);
|
||||
return crs;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class GenericDataServiceImpl implements GenericDataService {
|
||||
}
|
||||
|
||||
long elapsed = System.currentTimeMillis() - startTime;
|
||||
logger.info("Elapsed Time FOR UPDATE: " + elapsed + " SQL: " + sql);
|
||||
//logger.info("Elapsed Time FOR UPDATE: " + elapsed + " SQL: " + sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -165,14 +165,14 @@ public class GenericDataServiceImpl implements GenericDataService {
|
||||
writer.append("[");
|
||||
|
||||
List<ResultsetColumnHeader> columnHeaders = grs.getColumnHeaders();
|
||||
logger.info("NO. of Columns: " + columnHeaders.size());
|
||||
//logger.info("NO. of Columns: " + columnHeaders.size());
|
||||
|
||||
List<ResultsetDataRow> data = grs.getData();
|
||||
List<String> row;
|
||||
Integer rSize;
|
||||
String currColType;
|
||||
String currVal;
|
||||
logger.info("NO. of Rows: " + data.size());
|
||||
//logger.info("NO. of Rows: " + data.size());
|
||||
for (int i = 0; i < data.size(); i++) {
|
||||
writer.append("\n{");
|
||||
|
||||
@@ -212,7 +212,7 @@ public class GenericDataServiceImpl implements GenericDataService {
|
||||
}
|
||||
|
||||
private void dbClose(Statement db_statement, Connection db_connection) {
|
||||
logger.debug("dbClose");
|
||||
//logger.debug("dbClose");
|
||||
try {
|
||||
if (db_statement != null) {
|
||||
db_statement.close();
|
||||
|
||||
+1
-1
@@ -155,7 +155,7 @@ public class StaffApiResource {
|
||||
if (StringUtils.isNotBlank(extraCriteria)) {
|
||||
extraCriteria = extraCriteria.substring(4);
|
||||
}
|
||||
logger.debug("extraCriteria; " + extraCriteria);
|
||||
//logger.debug("extraCriteria; " + extraCriteria);
|
||||
|
||||
return extraCriteria;
|
||||
}
|
||||
|
||||
+1
-1
@@ -158,7 +158,7 @@ public class ClientsApiResource {
|
||||
extraCriteria = extraCriteria.substring(4);
|
||||
}
|
||||
|
||||
logger.info("extraCriteria; " + extraCriteria);
|
||||
//logger.info("extraCriteria; " + extraCriteria);
|
||||
|
||||
return extraCriteria;
|
||||
}
|
||||
|
||||
+1
-1
@@ -267,7 +267,7 @@ public class GroupsApiResource {
|
||||
extraCriteria = extraCriteria.substring(4);
|
||||
}
|
||||
|
||||
logger.info("extraCriteria; " + extraCriteria);
|
||||
//logger.info("extraCriteria; " + extraCriteria);
|
||||
|
||||
return extraCriteria;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
|
||||
<logger name="org.mifosng.platform" level="debug" />
|
||||
<logger name="org.mifosplatform.infrastructure.security.filter" level="info" />
|
||||
<logger name="org.mifosplatform" level="debug" />
|
||||
<logger name="org.springframework.web" level="info" />
|
||||
<logger name="org.springframework.beans" level="info" />
|
||||
|
||||
Reference in New Issue
Block a user