diff --git a/docs/index.md b/docs/index.md index ead514e83..7e999138f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,7 +4,7 @@ navigation_title: Elastic Docs v3 # Welcome to Elastic Docs v3 -Elastic Docs V3 is our next-generation documentation platform designed to improve the experience of learning, using, and contributing to Elastic products. Built on a foundation of modern authoring tools and scalable infrastructure, V3 offers faster builds, streamlined versioning, and enhanced navigation to guide users through Elastic’s complex ecosystem. +Elastic Docs V3 is our next-generation documentation platform designed to improve the experience of learning, using, and contributing to Elastic products. Built on a foundation of modern authoring tools and scalable infrastructure, V3 offers faster builds, streamlined versioning, and enhanced navigation to guide users through Elastic’s complex ecosystem. ## What do you want to do today? diff --git a/src/Elastic.Documentation/ExternalCommands/ExternalCommandExecutor.cs b/src/Elastic.Documentation/ExternalCommands/ExternalCommandExecutor.cs index ccdc9821c..1b2b770b0 100644 --- a/src/Elastic.Documentation/ExternalCommands/ExternalCommandExecutor.cs +++ b/src/Elastic.Documentation/ExternalCommands/ExternalCommandExecutor.cs @@ -64,7 +64,6 @@ private string[] CaptureMultiple(bool muteExceptions, int attempts, string binar } catch (Exception ex) { - collector.EmitGlobalWarning($"An exception occurred on attempt {i} to capture output of {binary}: {ex?.Message}"); if (ex is not null) e = ex; } @@ -84,7 +83,8 @@ string[] CaptureOutput(Exception? previousException, int iteration, int max) WorkingDirectory = workingDirectory.FullName, Timeout = TimeSpan.FromSeconds(3), WaitForExit = TimeSpan.FromSeconds(3), - ConsoleOutWriter = new ConsoleOutWriter() + // Capture the output of the command if it's the last iteration + ConsoleOutWriter = iteration == max ? new ConsoleOutWriter() : NoopConsoleWriter.Instance, }; var result = Proc.Start(arguments);