r1941 - trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/wizard
Author: tchemit Date: 2010-05-30 14:11:41 +0200 (Sun, 30 May 2010) New Revision: 1941 Url: http://nuiton.org/repositories/revision/jaxx/1941 Log: improve logs Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/wizard/WizardOperationModel.java Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/wizard/WizardOperationModel.java =================================================================== --- trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/wizard/WizardOperationModel.java 2010-05-30 09:21:32 UTC (rev 1940) +++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/wizard/WizardOperationModel.java 2010-05-30 12:11:41 UTC (rev 1941) @@ -92,7 +92,9 @@ // initialisation du modèle associé à l'opération WizardOperationActionModel<E> model = (WizardOperationActionModel<E>) step.newModel(); - log.info("[" + step + "] Add an operation model " + model); + if (log.isInfoEnabled()) { + log.info("[" + step + "] Add an operation model " + model); + } models.put(step, model); } } @@ -170,7 +172,9 @@ } public boolean[] getAccessibleSteps() { - log.info("compute with steps "+getSteps()); + if (log.isDebugEnabled()) { + log.debug("compute with steps "+getSteps()); + } boolean[] result = new boolean[getSteps().size()]; int index = getSteps().indexOf(getStep()); if (index != -1) { @@ -190,7 +194,9 @@ (!previousStep.isOperation() || getOperationState(previousStep) == WizardOperationState.SUCCESSED); } } - log.info("accessibles steps -------- " + Arrays.toString(result)); + if (log.isDebugEnabled()) { + log.debug("accessibles steps -------- " + Arrays.toString(result)); + } return result; }
participants (1)
-
tchemit@users.nuiton.org