mirror of https://github.com/apache/jclouds.git
Issue 848. Increased log level to error when BackoffLimitedRetryHandler cannot retry any more.
This commit is contained in:
parent
0128dcec19
commit
870a937f14
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue