Skip to content

Commit

Permalink
LOG > log
Browse files Browse the repository at this point in the history
  • Loading branch information
jdyer1 committed Mar 11, 2024
1 parent 9a66da0 commit 8c638a9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
import org.slf4j.LoggerFactory;

public class HttpSolrJdkClient extends HttpSolrClientBase {
private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private static final String USER_AGENT =
"Solr[" + MethodHandles.lookup().lookupClass().getName() + "] 1.0";
Expand Down Expand Up @@ -116,7 +116,7 @@ protected HttpSolrJdkClient(String serverBaseUrl, HttpSolrJdkClient.Builder buil

if (builder.proxyHost != null) {
if (builder.proxyIsSocks4) {
LOG.warn(
log.warn(
"Socks4 is likely not supported by this client. See https://bugs.openjdk.org/browse/JDK-8214516");
}
b.proxy(ProxySelector.of(new InetSocketAddress(builder.proxyHost, builder.proxyPort)));
Expand Down Expand Up @@ -239,7 +239,7 @@ private HttpResponse<InputStream> doPutOrPost(
try (source) {
contentWriter.write(source);
} catch (Exception e) {
LOG.error("Cannot write Content Stream", e);
log.error("Cannot write Content Stream", e);
}
});
} else if (streams != null && streams.size() == 1) {
Expand Down Expand Up @@ -329,7 +329,7 @@ private synchronized boolean maybeTryHeadRequestSync(String url) {
httpClient.send(headReqB.build(), HttpResponse.BodyHandlers.discarding());
headSucceeded = true;
} catch (IOException ioe) {
LOG.warn("Could not issue HEAD request to {} ", url, ioe);
log.warn("Could not issue HEAD request to {} ", url, ioe);
headSucceeded = false;
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
Expand All @@ -340,7 +340,7 @@ private synchronized boolean maybeTryHeadRequestSync(String url) {
headRequested = true;

if (!headSucceeded) {
LOG.info("All insecure POST requests with a chunked body will use http/1.1");
log.info("All insecure POST requests with a chunked body will use http/1.1");
}
}

Expand Down

0 comments on commit 8c638a9

Please sign in to comment.