don't log warning if exception is retryable, downgraded to an info message

This commit is contained in:
Alex Heneveld 2011-11-30 16:06:18 +00:00
parent 4d11d4ef05
commit c8d614e360
1 changed files with 1 additions and 1 deletions

View File

@ -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();