BATCH-1630: add defensive test to logging in RetryTemplate

This commit is contained in:
dsyer
2010-09-27 06:31:03 +00:00
parent c1e65ce077
commit d20e518b9c

View File

@@ -202,7 +202,9 @@ public class RetryTemplate implements RetryOperations {
// Allow the retry policy to initialise itself...
RetryContext context = open(retryPolicy, state);
logger.debug("RetryContext retrieved: " + context);
if (logger.isTraceEnabled()) {
logger.trace("RetryContext retrieved: " + context);
}
// Make sure the context is available globally for clients who need
// it...