Skip to content

Commit 80e74c0

Browse files
committed
more debugging
1 parent cc27128 commit 80e74c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/Elastic.Xunit.ExampleMinimal/ExampleTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class MyTestCluster : XunitClusterBase
2121
/// We pass our configuration instance to the base class.
2222
/// We only configure it to run version 6.2.3 here but lots of additional options are available.
2323
/// </summary>
24-
public MyTestCluster() : base(new XunitClusterConfiguration("8.16.0")
24+
public MyTestCluster() : base(new XunitClusterConfiguration("8.14.0")
2525
{ PrintYamlFilesInConfigFolder = true, NoCleanupAfterNodeStopped = true })
2626
{
2727
}

src/Elastic.Elasticsearch.Managed/ElasticsearchNode.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Diagnostics;
8+
using System.Linq;
89
using System.Threading;
910
using Elastic.Elasticsearch.Managed.Configuration;
1011
using Elastic.Elasticsearch.Managed.ConsoleWriters;
@@ -117,6 +118,8 @@ public IDisposable SubscribeLines(IConsoleLineHandler writer, Action<LineOut> on
117118
writer?.WriteDiagnostic($"Elasticsearch location: [{Binary}]", node);
118119
writer?.WriteDiagnostic($"Settings: {{{string.Join(" ", NodeConfiguration.CommandLineArguments)}}}", node);
119120
writer?.WriteDiagnostic($"Environment: {{{string.Join(" ", StartArguments.Environment)}}}", node);
121+
var envArgs = string.Join(" ", StartArguments.Environment.Select(kv => $"{kv.Key}={kv.Value}"));
122+
writer?.WriteDiagnostic($"Full CMD: env {envArgs} {Binary} {string.Join(" ", NodeConfiguration.CommandLineArguments)} ", node);
120123

121124
var envVarName = NodeConfiguration.Version.InRange("<7.12.0") ? "JAVA_HOME" : "ES_JAVA_HOME";
122125
var javaHome = Environment.GetEnvironmentVariable(envVarName);

0 commit comments

Comments
 (0)