mirror of https://github.com/apache/jclouds.git
don't log warning if exception is retryable, downgraded to an info message
This commit is contained in:
parent
4d11d4ef05
commit
c8d614e360
|
@ -232,7 +232,7 @@ public class SshjSshClient implements SshClient {
|
|||
throw propagate(from, errorMessage+" (out of retries - max "+sshRetries+")");
|
||||
} else if (shouldRetry(from) ||
|
||||
(Throwables2.getFirstThrowableOfType(from, IllegalStateException.class) != null)) {
|
||||
logger.warn(from, "<< " + errorMessage + ": " + from.getMessage());
|
||||
logger.info("<< " + errorMessage + " (attempt " + (i + 1) + " of " + sshRetries + "): " + from.getMessage());
|
||||
backoffForAttempt(i + 1, errorMessage + ": " + from.getMessage());
|
||||
if (connection != sshConnection)
|
||||
connect();
|
||||
|
|
Loading…
Reference in New Issue