mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
2d1056e06f
commit
d9660bcd42
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue