diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs b/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs index f9d191e4e3..fc310e5f77 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs @@ -67,7 +67,7 @@ private static async Task Collect(CancellationToken ct, IConsole console, i { cancelOnCtrlC = true; cancelOnEnter = !Console.IsInputRedirected; - printStatusOverTime = !Console.IsInputRedirected; + printStatusOverTime = !Console.IsOutputRedirected; } if (!cancelOnCtrlC)