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 553b433 commit caf0c08Copy full SHA for caf0c08
util/EnsureClusterAlive.php
@@ -26,7 +26,22 @@
26
$count += 1;
27
28
if ($count > 15) {
29
- 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";
30
+
31
+ $dir = new DirectoryIterator(dirname(__DIR__));
32
33
+ foreach ($dir as $fileinfo) {
34
+ if ($fileinfo->isDir() && !$fileinfo->isDot()) {
35
+ if (strpos($fileinfo->getFilename(), "elasticsearch") === 0) {
36
+ $log = file_get_contents(dirname(__DIR__)."/$fileinfo/logs/elasticsearch.log");
37
+ echo $log;
38
+ break;
39
+ }
40
41
42
43
44
+ throw new \Exception();
45
}
46
sleep(1);
47
0 commit comments