From 8a749aa5ad9fc69cbacb372a31a3dd03b5098354 Mon Sep 17 00:00:00 2001 From: luccioman Date: Sat, 26 May 2018 20:58:05 +0200 Subject: [PATCH] Trace level log message for monitoring remote solr response times --- source/net/yacy/peers/Protocol.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.java index 6c9ec2d3b..3c55e15d8 100644 --- a/source/net/yacy/peers/Protocol.java +++ b/source/net/yacy/peers/Protocol.java @@ -1120,6 +1120,9 @@ public final class Protocol { 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); }