[build] Log more information when es doesn't start

This commit is contained in:
Nik Everett 2015-11-18 10:58:52 -05:00
parent 22873dc952
commit 1f67ef2526
1 changed files with 5 additions and 0 deletions

View File

@ -278,6 +278,11 @@ class ClusterFormationTasks {
} else {
logger.error("Couldn't start elasticsearch and couldn't find ${logFile}")
}
logger.error("Command: ${executable} ${(esArgs + esProps).join(' ')}")
if (esEnv.isEmpty() == false) {
logger.error('environment:')
esEnv.each { k, v -> logger.error(" ${k}: ${v}")}
}
throw new GradleException('Failed to start elasticsearch')
}
}