From d9660bcd42770b57aa338980991acd84ffce28a0 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Wed, 23 Jul 2014 17:50:10 +0000 Subject: [PATCH] SOLR-6232: fix logging of core init failures git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612896 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/java/org/apache/solr/core/ConfigSetService.java | 3 ++- solr/core/src/java/org/apache/solr/core/CoreContainer.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/core/ConfigSetService.java b/solr/core/src/java/org/apache/solr/core/ConfigSetService.java index 1065a866f2f..071f31602f4 100644 --- a/solr/core/src/java/org/apache/solr/core/ConfigSetService.java +++ b/solr/core/src/java/org/apache/solr/core/ConfigSetService.java @@ -64,7 +64,8 @@ public abstract class ConfigSetService { } catch (Exception e) { throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, - "Could not load core configuration for core " + dcore.getName(), e); + "Could not load conf for core " + dcore.getName() + + ": " + e.getMessage(), e); } } diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java index f82a7137a9e..d5e1ec55666 100644 --- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java +++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java @@ -499,6 +499,7 @@ public class CoreContainer { } catch (Exception e) { coreInitFailures.put(dcore.getName(), new CoreLoadFailure(dcore, e)); + log.error("Error creating core [{}]: {}", dcore.getName(), e.getMessage(), e); throw new SolrException(ErrorCode.SERVER_ERROR, "Unable to create core [" + dcore.getName() + "]", e); }