improve logging for bootstrap cmd

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1364438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-07-22 21:46:06 +00:00
parent 6578d7f512
commit 6b2cc429ec
1 changed files with 2 additions and 3 deletions

View File

@ -1134,13 +1134,12 @@ public final class ZkController {
*/
public static void bootstrapConf(SolrZkClient zkClient, Config cfg, String solrHome) throws IOException,
KeeperException, InterruptedException {
log.info("bootstraping config into ZooKeeper using solr.xml");
NodeList nodes = (NodeList)cfg.evaluate("solr/cores/core", XPathConstants.NODESET);
for (int i=0; i<nodes.getLength(); i++) {
Node node = nodes.item(i);
String rawName = DOMUtil.substituteProperty(DOMUtil.getAttr(node, "name", null), new Properties());
String instanceDir = DOMUtil.getAttr(node, "instanceDir", null);
File idir = new File(instanceDir);
if (!idir.isAbsolute()) {
@ -1151,7 +1150,7 @@ public final class ZkController {
confName = rawName;
}
File udir = new File(idir, "conf");
SolrException.log(log, "Uploading directory " + udir + " with name " + confName + " for SolrCore " + rawName);
log.info("Uploading directory " + udir + " with name " + confName + " for SolrCore " + rawName);
ZkController.uploadConfigDir(zkClient, udir, confName);
}
}