Do not display exception on graceful exit case (#300)
authorSung Yoon Whang <suwhang@microsoft.com>
Sun, 2 Jun 2019 23:49:07 +0000 (16:49 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2019 23:49:07 +0000 (16:49 -0700)
* Do not display exception on graceful exit case

* Use Debug.WriteLine instead of removing

src/Tools/dotnet-counters/CounterMonitor.cs

index ed129d1d12f50eed420f8c853f4d35c2bc11ee44..bace03216fc2cac05a88555121978b7f9fb49245 100644 (file)
@@ -174,7 +174,7 @@ namespace Microsoft.Diagnostics.Tools.Counters
                 }
                 catch (Exception ex)
                 {
-                    Console.Error.WriteLine($"[ERROR] {ex.ToString()}");
+                    Debug.WriteLine($"[ERROR] {ex.ToString()}");
                 }
                 finally
                 {