Skip to content

Commit

Permalink
Only log first-chance ObjectDisposedException instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Jan 23, 2025
1 parent 930922d commit 809b54c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions projects/Applications/GH-1749/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,11 @@ private static Task Channel_ChannelShutdownAsync(object sender, ShutdownEventArg

private static void CurrentDomain_FirstChanceException(object? sender, FirstChanceExceptionEventArgs e)
{
Console.WriteLine("{0} [INFO] saw FirstChanceException, exception: {1}", Now, e.Exception);
/*
// Console.WriteLine("{0} [INFO] saw FirstChanceException, exception: {1}", Now, e.Exception);
if (e.Exception is ObjectDisposedException)
{
Console.WriteLine("{0} [INFO] saw FirstChanceException, exception: {1}", Now, e.Exception);
}
*/
}

private static Task Connection_CallbackExceptionAsync(object sender, CallbackExceptionEventArgs ea)
Expand Down

0 comments on commit 809b54c

Please sign in to comment.