From: mikelle-rogers <45022607+mikelle-rogers@users.noreply.github.com> Date: Fri, 23 Jul 2021 17:51:47 +0000 (-0600) Subject: fixed dotnet-trace when output is not redirected (#2448) X-Git-Tag: submit/tizen/20220302.040122~21^2^2~201 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b99be68ebf5c6c712418ef6054616b37762ffc73;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git fixed dotnet-trace when output is not redirected (#2448) Co-authored-by: Mikelle Rogers --- diff --git a/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs b/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs index f9d191e4e..fc310e5f7 100644 --- a/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs +++ b/src/Tools/dotnet-trace/CommandLine/Commands/CollectCommand.cs @@ -67,7 +67,7 @@ namespace Microsoft.Diagnostics.Tools.Trace { cancelOnCtrlC = true; cancelOnEnter = !Console.IsInputRedirected; - printStatusOverTime = !Console.IsInputRedirected; + printStatusOverTime = !Console.IsOutputRedirected; } if (!cancelOnCtrlC)