diff --git a/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs b/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs index f93e0311..2267daaf 100644 --- a/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs +++ b/src/Microsoft.Tye.Hosting.Diagnostics/DiagnosticsCollector.cs @@ -197,23 +197,9 @@ namespace Microsoft.Tye.Hosting.Diagnostics { session = client.StartEventPipeSession(providers); } - catch (EndOfStreamException) - { - break; - } // If the process has already exited, a ServerNotAvailableException will be thrown. - catch (ServerNotAvailableException) - { - break; - } - catch (Exception ex) + catch (Exception) { - if (!cancellationToken.IsCancellationRequested) - { - _logger.LogDebug(0, ex, "Failed to start the event pipe session"); - } - - // We can't even start the session, wait until the process boots up again to start another metrics thread break; }