Merge pull request #385 from milkmansrevenge/master

Issue 848 - logging levels in BackoffLimitedRetryHandler
This commit is contained in:
Adrian Cole 2012-02-23 07:23:34 -08:00
commit 630c3925c7
1 changed files with 2 additions and 2 deletions

View File

@ -106,10 +106,10 @@ public class BackoffLimitedRetryHandler implements HttpRetryHandler, IOException
command.incrementFailureCount(); command.incrementFailureCount();
if (!command.isReplayable()) { if (!command.isReplayable()) {
logger.warn("Cannot retry after server error, command is not replayable: %1$s", command); logger.error("Cannot retry after server error, command is not replayable: %1$s", command);
return false; return false;
} else if (command.getFailureCount() > retryCountLimit) { } else if (command.getFailureCount() > retryCountLimit) {
logger.warn("Cannot retry after server error, command has exceeded retry limit %1$d: %2$s", retryCountLimit, logger.error("Cannot retry after server error, command has exceeded retry limit %1$d: %2$s", retryCountLimit,
command); command);
return false; return false;
} else { } else {