diff options
Diffstat (limited to 'src/System.Net.Http/src/System/Net/Http/StreamToStreamCopy.cs')
-rw-r--r-- | src/System.Net.Http/src/System/Net/Http/StreamToStreamCopy.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/System.Net.Http/src/System/Net/Http/StreamToStreamCopy.cs b/src/System.Net.Http/src/System/Net/Http/StreamToStreamCopy.cs index 6a8477ca7a..e1ebe5b321 100644 --- a/src/System.Net.Http/src/System/Net/Http/StreamToStreamCopy.cs +++ b/src/System.Net.Http/src/System/Net/Http/StreamToStreamCopy.cs @@ -274,10 +274,7 @@ namespace System.Net.Http catch (Exception e) { // Dispose() should never throw, but since we're on an async codepath, make sure to catch the exception. - if (NetEventSource.Log.IsEnabled()) - { - NetEventSource.Exception(NetEventSource.ComponentType.Http, null, nameof(CopyAsync), e); - } + NetEventSource.Error(null, e); } } } |