|
@@ -130,7 +130,9 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler {
|
|
|
Thread.sleep(retryInfo.delay);
|
|
|
} catch (InterruptedException e) {
|
|
|
Thread.currentThread().interrupt();
|
|
|
- LOG.warn("Interrupted while waiting to retry", e);
|
|
|
+ if (LOG.isDebugEnabled()) {
|
|
|
+ LOG.debug("Interrupted while waiting to retry", e);
|
|
|
+ }
|
|
|
InterruptedIOException intIOE = new InterruptedIOException(
|
|
|
"Retry interrupted");
|
|
|
intIOE.initCause(e);
|
|
@@ -375,7 +377,7 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler {
|
|
|
}
|
|
|
|
|
|
final StringBuilder b = new StringBuilder()
|
|
|
- .append("Exception while invoking ")
|
|
|
+ .append(ex + ", while invoking ")
|
|
|
.append(proxyDescriptor.getProxyInfo().getString(method.getName()));
|
|
|
if (failovers > 0) {
|
|
|
b.append(" after ").append(failovers).append(" failover attempts");
|
|
@@ -384,7 +386,7 @@ public class RetryInvocationHandler<T> implements RpcInvocationHandler {
|
|
|
b.append(delay > 0? "after sleeping for " + delay + "ms.": "immediately.");
|
|
|
|
|
|
if (info) {
|
|
|
- LOG.info(b.toString(), ex);
|
|
|
+ LOG.info(b.toString());
|
|
|
} else {
|
|
|
LOG.debug(b.toString(), ex);
|
|
|
}
|