fixed dotnet-trace when output is not redirected (#2448)
authormikelle-rogers <45022607+mikelle-rogers@users.noreply.github.com>
Fri, 23 Jul 2021 17:51:47 +0000 (11:51 -0600)
committerGitHub <noreply@github.com>
Fri, 23 Jul 2021 17:51:47 +0000 (17:51 +0000)
Co-authored-by: Mikelle Rogers <mirogers@microsoft.com>
src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs

index f9d191e4e3a1bbc037a90f65d399a6e2998d5d67..fc310e5f77a6cbdd2279a1caec73f27e2c585c53 100644 (file)
@@ -67,7 +67,7 @@ namespace Microsoft.Diagnostics.Tools.Trace
                 {
                     cancelOnCtrlC = true;
                     cancelOnEnter = !Console.IsInputRedirected;
-                    printStatusOverTime = !Console.IsInputRedirected;
+                    printStatusOverTime = !Console.IsOutputRedirected;
                 }
 
                 if (!cancelOnCtrlC)