Using debug method for logging some messages that are meant for debugging

This commit is contained in:
Manuel Rego Casasnovas 2012-09-14 09:48:12 +02:00
parent ddb6533fb7
commit 172c9ba195
6 changed files with 19 additions and 19 deletions

View file

@ -346,7 +346,7 @@ public class Planner extends HtmlMacroComponent {
resettingPreviousComponentsToNull();
long timeAddingData = System.currentTimeMillis();
newContext.add(configuration.getData());
PROFILING_LOG.info("It took to add data: "
PROFILING_LOG.debug("It took to add data: "
+ (System.currentTimeMillis() - timeAddingData) + " ms");
long timeSetupingAndAddingComponents = System.currentTimeMillis();
setupComponents();
@ -394,7 +394,7 @@ public class Planner extends HtmlMacroComponent {
((South) getFellow("graphics")).setOpen(this.visibleChart);
PROFILING_LOG
.info("it took doing the setup of components and adding them: "
.debug("it took doing the setup of components and adding them: "
+ (System.currentTimeMillis() - timeSetupingAndAddingComponents)
+ " ms");

View file

@ -105,14 +105,14 @@ public class HibernateDatabaseModificationsListener implements
@Override
public void afterCompletion(int status) {
LOG.info("transaction completed with status: " + status);
LOG.debug("transaction completed with status: " + status);
pending.remove(transaction);
if (isProbablySucessful(status)) {
List<Class<?>> list = new ArrayList<Class<?>>();
classes.drainTo(list);
LOG.info(list.size() + " modification events recorded");
LOG.debug(list.size() + " modification events recorded");
Set<NotBlockingAutoUpdatedSnapshot<?>> toDispatch = snapshotsInterestedOn(list);
LOG.info("dispatching "
LOG.debug("dispatching "
+ toDispatch
+ " snapshots to reload due to transaction successful completion");
dispatch(toDispatch);

View file

@ -115,7 +115,7 @@ class NotBlockingAutoUpdatedSnapshot<T> implements IAutoUpdatedSnapshot<T> {
newValue));
return newValue;
}
LOG.info(name + " the ongoing calculation has not been completed. "
LOG.debug(name + " the ongoing calculation has not been completed. "
+ "Returning previous value");
return previousValue.getValue();
}
@ -135,7 +135,7 @@ class NotBlockingAutoUpdatedSnapshot<T> implements IAutoUpdatedSnapshot<T> {
if (ongoingCalculation.isDone() || ongoingCalculation.isCancelled()) {
return;
}
LOG.info(name + " cancelling ongoing future");
LOG.debug(name + " cancelling ongoing future");
try {
ongoingCalculation.cancel(true);
} catch (Exception e) {
@ -283,19 +283,19 @@ class NotBlockingAutoUpdatedSnapshot<T> implements IAutoUpdatedSnapshot<T> {
private void report(long timeWaiting, long timeExecuting, Data data,
Exception possibleError) {
LOG.info(name + " took " + timeExecuting + " ms executing");
LOG.debug(name + " took " + timeExecuting + " ms executing");
if (possibleError != null) {
LOG.error("error loading " + name, possibleError);
}
LOG.info(name + " waited for " + timeWaiting
LOG.debug(name + " waited for " + timeWaiting
+ " ms until executing");
LOG.info(name + " mean time waiting for execution: "
LOG.debug(name + " mean time waiting for execution: "
+ data.totalMsWaiting / data.executionTimes + " ms");
LOG.info(name + " mean time executing: "
LOG.debug(name + " mean time executing: "
+ data.totalMsExecuting / data.executionTimes + " ms");
LOG.info(name + " has been executed " + data.executionTimes
LOG.debug(name + " has been executed " + data.executionTimes
+ " times");
LOG.info(name + " has produced errors " + data.errors + " times");
LOG.debug(name + " has produced errors " + data.errors + " times");
}
}

View file

@ -71,7 +71,7 @@ public class DBUnitTestExecutionListener extends
IDataSet dataSets[] = getDataSets(testContext);
for (IDataSet dataSet : dataSets) {
DatabaseOperation.CLEAN_INSERT.execute(dbUnitConn, dataSet);
logger.info("Performed CLEAN_INSERT of IDataSet.");
logger.debug("Performed CLEAN_INSERT of IDataSet.");
}
} finally {
DataSourceUtils.releaseConnection(conn, dataSource);

View file

@ -217,7 +217,7 @@ public class OrderPlanningController implements Composer {
advanceAssignmentPlanningController,
advanceConsolidationController,
calendarAllocationController, additional);
PROFILING_LOG.info("setConfigurationToPlanner took: "
PROFILING_LOG.debug("setConfigurationToPlanner took: "
+ (System.currentTimeMillis() - time) + " ms");
planner.updateSelectedZoomLevel();
showResorceAllocationIfIsNeeded();

View file

@ -308,7 +308,7 @@ public class OrderPlanningModel implements IOrderPlanningModel {
planningState = createPlanningStateFor(order);
PlannerConfiguration<TaskElement> configuration = planningState
.getConfiguration();
PROFILING_LOG.info("load data and create configuration took: "
PROFILING_LOG.debug("load data and create configuration took: "
+ (System.currentTimeMillis() - time) + " ms");
User user;
try {
@ -368,7 +368,7 @@ public class OrderPlanningModel implements IOrderPlanningModel {
configureModificators(planningState.getOrder(), configuration);
long setConfigurationTime = System.currentTimeMillis();
planner.setConfiguration(configuration);
PROFILING_LOG.info("setConfiguration on planner took: "
PROFILING_LOG.debug("setConfiguration on planner took: "
+ (System.currentTimeMillis() - setConfigurationTime) + " ms");
long preparingChartsAndMisc = System.currentTimeMillis();
// Prepare tabpanels
@ -392,14 +392,14 @@ public class OrderPlanningModel implements IOrderPlanningModel {
planner, changeHooker);
setupAdvanceAssignmentPlanningController(planner, advanceAssignmentPlanningController);
PROFILING_LOG
.info("preparing charts and miscellaneous took: "
.debug("preparing charts and miscellaneous took: "
+ (System.currentTimeMillis() - preparingChartsAndMisc)
+ " ms");
// Calculate critical path progress, needed for 'Project global progress' chart in Dashboard view
planner.addGraphChangeListenersFromConfiguration(configuration);
long overalProgressContentTime = System.currentTimeMillis();
PROFILING_LOG.info("overalProgressContent took: "
PROFILING_LOG.debug("overalProgressContent took: "
+ (System.currentTimeMillis() - overalProgressContentTime));
}