Skip to content
Permalink
Browse files

Trace level log message for monitoring remote solr response times

  • Loading branch information...
luccioman committed May 26, 2018
1 parent 35826a3 commit 8a749aa5ad9fc69cbacb372a31a3dd03b5098354
Showing with 3 additions and 0 deletions.
  1. +3 −0 source/net/yacy/peers/Protocol.java
@@ -1120,6 +1120,9 @@ public void run() {
try {
this.rsp[0] = this.solrConnector.getResponseByParams(solrQuery);
this.docList[0] = this.rsp[0].getResults();
if(log.isFine() && rsp[0] != null && rsp[0].getElapsedTime() >= 0) {
log.fine("Got a response from solr instance at " + this.targetBaseURL + " in " + rsp[0].getElapsedTime() + "ms");
}
} catch (Exception e) {
logError("Could not get result from solr", e);
}

0 comments on commit 8a749aa

Please sign in to comment.
You can’t perform that action at this time.