We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5db567 commit e03cbb2Copy full SHA for e03cbb2
util/EnsureClusterAlive.php
@@ -24,7 +24,22 @@
24
$count += 1;
25
26
if ($count > 15) {
27
- throw new \Exception("Live cluster could not be found in 15s!");
+ echo "Live cluster could not be found in 15s!\nContents of elasticsearch.log:\n\n";
28
+
29
+ $dir = new DirectoryIterator(dirname(__DIR__));
30
31
+ foreach ($dir as $fileinfo) {
32
+ if ($fileinfo->isDir() && !$fileinfo->isDot()) {
33
+ if (strpos($fileinfo->getFilename(), "elasticsearch") === 0) {
34
+ $log = file_get_contents(dirname(__DIR__)."/$fileinfo/logs/elasticsearch.log");
35
+ echo $log;
36
+ break;
37
+ }
38
39
40
41
42
+ throw new \Exception();
43
}
44
sleep(1);
45
0 commit comments