SOLR-8450: Fix debug logging.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724807 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2016-01-15 13:53:15 +00:00
parent 073dbdc17e
commit c6c4dded6d
1 changed files with 3 additions and 2 deletions

View File

@ -110,12 +110,12 @@ public class SolrHttpRequestRetryHandler implements HttpRequestRetryHandler {
return false;
}
if (this.nonRetriableClasses.contains(exception.getClass())) {
log.debug("Do not retry, non retriable class {}" + exception.getClass());
log.debug("Do not retry, non retriable class {}", exception.getClass().getName());
return false;
} else {
for (final Class<? extends IOException> rejectException : this.nonRetriableClasses) {
if (rejectException.isInstance(exception)) {
log.debug("Do not retry, non retriable class {}" + exception.getClass());
log.debug("Do not retry, non retriable class {}", exception.getClass().getName());
return false;
}
}
@ -143,6 +143,7 @@ public class SolrHttpRequestRetryHandler implements HttpRequestRetryHandler {
protected boolean handleAsIdempotent(final HttpClientContext context) {
String method = context.getRequest().getRequestLine().getMethod();
context.getRequest().getRequestLine().getUri();
return method.equals(GET);
}