BATCH-1830: always use INFO and only DEBUG the stack trace

This commit is contained in:
Dave Syer
2012-07-03 09:13:54 +01:00
parent e4d95202a7
commit 2b16a43750

View File

@@ -306,12 +306,10 @@ public abstract class AbstractJob implements Job, StepLocator, BeanNameAware,
}
} catch (JobInterruptedException e) {
logger.info("Encountered interruption executing job: "
+ e.getMessage());
if (logger.isDebugEnabled()) {
logger.debug("Encountered interruption executing job: "
+ e.getMessage(), e);
} else {
logger.info("Encountered interruption executing job: "
+ e.getMessage());
logger.debug("Full exception", e);
}
execution.setExitStatus(getDefaultExitStatusForFailure(e));
execution.setStatus(BatchStatus.STOPPED);