From ae02c92fd0e763adb5a4a5b6b3bb0d091abd0276 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 9 Apr 2015 14:21:23 +0200 Subject: [PATCH] logging fix --- .../federate/solr/connector/EmbeddedSolrConnector.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/cora/federate/solr/connector/EmbeddedSolrConnector.java b/source/net/yacy/cora/federate/solr/connector/EmbeddedSolrConnector.java index 963387595..3fa788451 100644 --- a/source/net/yacy/cora/federate/solr/connector/EmbeddedSolrConnector.java +++ b/source/net/yacy/cora/federate/solr/connector/EmbeddedSolrConnector.java @@ -331,13 +331,14 @@ public class EmbeddedSolrConnector extends SolrServerConnector implements SolrCo if (this.server == null) throw new IOException("server disconnected"); // during the solr query we set the thread name to the query string to get more debugging info in thread dumps String q = params.get(CommonParams.Q); + String fl = params.get(CommonParams.FL); String[] fq = params.getParams(CommonParams.FQ); String threadname = Thread.currentThread().getName(); if (q != null) { StringBuilder fqa = new StringBuilder(); - for (String f: fq) fqa.append("fq=").append(f).append(' '); - Thread.currentThread().setName("solr query: q = " + q + (fq == null ? "" : ", " + fqa.toString())); - //System.out.println("solr query: q = " + q + (fq == null ? "" : ", " + fqa.toString())); + if (fq != null) for (String f: fq) fqa.append("fq=").append(f).append(' '); + Thread.currentThread().setName("solr query: q = " + q + (fq == null ? "" : ", " + fqa.toString()) + (fl == null ? "" : ", fl=" + fl)); + //System.out.println("solr query: q = " + q + (fq == null ? "" : ", " + fqa.toString()) + (fl == null ? "" : ", fl=" + fl)); } QueryResponse rsp; try {