Skip to content

Commit 809b54c

Browse files
committed
Only log first-chance ObjectDisposedException instances.
1 parent 930922d commit 809b54c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/Applications/GH-1749/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,11 @@ private static Task Channel_ChannelShutdownAsync(object sender, ShutdownEventArg
160160

161161
private static void CurrentDomain_FirstChanceException(object? sender, FirstChanceExceptionEventArgs e)
162162
{
163-
Console.WriteLine("{0} [INFO] saw FirstChanceException, exception: {1}", Now, e.Exception);
164-
/*
163+
// Console.WriteLine("{0} [INFO] saw FirstChanceException, exception: {1}", Now, e.Exception);
165164
if (e.Exception is ObjectDisposedException)
166165
{
167166
Console.WriteLine("{0} [INFO] saw FirstChanceException, exception: {1}", Now, e.Exception);
168167
}
169-
*/
170168
}
171169

172170
private static Task Connection_CallbackExceptionAsync(object sender, CallbackExceptionEventArgs ea)

0 commit comments

Comments
 (0)