Skip to content

Commit 1f2324c

Browse files
committed
Remove Console.WriteLine from DiagnosticPortSession
1 parent 154cdbe commit 1f2324c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Ultra.Core/DiagnosticPortSession.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ private async Task ConnectAndStartProfilingImpl(CancellationToken token)
9090
public async Task StartProfiling(CancellationToken token)
9191
{
9292
// We want to make sure that we are not disposing while we are starting a session
93-
Console.WriteLine($"Before entering Start/Lock for {(_sampler?"sampler":"clr")}");
9493
await _semaphoreSlim.WaitAsync(token);
95-
Console.WriteLine($"After entering Start/Lock for {(_sampler?"sampler":"clr")}");
9694

9795
try
9896
{
@@ -218,9 +216,8 @@ public async ValueTask StopAndDisposeAsync()
218216
// We wait for the session to start (we will close it right after below
219217
await _profilingTask.ConfigureAwait(false);
220218
}
221-
catch (Exception ex)
219+
catch
222220
{
223-
Console.WriteLine($"Error while waiting for profiling {_baseName} {(_sampler?"sampler":"clr")} to finish: {ex}");
224221
// Ignore
225222
}
226223

0 commit comments

Comments
 (0)