lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject [1/2] lucene-solr:branch_7x: SOLR-12558: solr/core (private) logger rename - ExportWriter
Date Mon, 30 Jul 2018 18:35:01 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x c0b78f74e -> ea64e53f8


SOLR-12558: solr/core (private) logger rename - ExportWriter


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ea64e53f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ea64e53f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ea64e53f

Branch: refs/heads/branch_7x
Commit: ea64e53f859dba23a3f65f7064de0cfca047eae3
Parents: 52af1e9
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Mon Jul 30 18:48:58 2018 +0100
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Mon Jul 30 19:25:34 2018 +0100

----------------------------------------------------------------------
 .../java/org/apache/solr/handler/export/ExportWriter.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ea64e53f/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java b/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java
index 78d0795..57ce600 100644
--- a/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java
+++ b/solr/core/src/java/org/apache/solr/handler/export/ExportWriter.java
@@ -70,7 +70,7 @@ import static java.util.Collections.singletonMap;
 import static org.apache.solr.common.util.Utils.makeMap;
 
 public class ExportWriter implements SolrCore.RawWriter, Closeable {
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
+  private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
   private OutputStreamWriter respWriter;
   final SolrQueryRequest req;
   final SolrQueryResponse res;
@@ -105,15 +105,15 @@ public class ExportWriter implements SolrCore.RawWriter, Closeable {
 
   }
 
-  protected void writeException(Exception e, PushWriter w, boolean log) throws IOException
{
+  protected void writeException(Exception e, PushWriter w, boolean logException) throws IOException
{
     w.writeMap(mw -> {
       mw.put("responseHeader", singletonMap("status", 400))
           .put("response", makeMap(
               "numFound", 0,
               "docs", singletonList(singletonMap("EXCEPTION", e.getMessage()))));
     });
-    if (log) {
-      SolrException.log(logger, e);
+    if (logException) {
+      SolrException.log(log, e);
     }
   }
 


Mime
View raw message