Skip to content

Commit

Permalink
feat: or-1965 add debug information when not able to connect to ES
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Oct 30, 2023
1 parent 185027c commit 0819a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AssociationRegistry.Hosts/WaitFor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static Task ElasticSearchToBecomeAvailable(IElasticClient client, ILogger
var response = await client.PingAsync(ct: cancellationToken);

if (!response.IsValid)
throw new Exception("Could not Ping to ES");
throw new Exception($"Could not Ping to ES: {response.DebugInformation}");
},
serviceName: "ElasticSearch",
cancellationToken);
Expand Down

0 comments on commit 0819a9a

Please sign in to comment.