Justin Kotalik
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
15 deletions
-
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; |
|
|
|
} |
|
|
|
|
|
|
|
|