File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/Components/WebAssembly/WebAssembly/src/Services Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
- using System ;
5
- using System . Threading . Tasks ;
6
4
using Microsoft . AspNetCore . Components . Web ;
7
5
using Microsoft . Extensions . Logging ;
8
6
9
7
namespace Microsoft . AspNetCore . Components . WebAssembly . Services ;
10
8
11
- internal class WebAssemblyErrorBoundaryLogger : IErrorBoundaryLogger
9
+ internal sealed class WebAssemblyErrorBoundaryLogger : IErrorBoundaryLogger
12
10
{
13
11
private readonly ILogger < ErrorBoundary > _errorBoundaryLogger ;
14
12
@@ -21,7 +19,7 @@ public ValueTask LogErrorAsync(Exception exception)
21
19
{
22
20
// For, client-side code, all internal state is visible to the end user. We can just
23
21
// log directly to the console.
24
- _errorBoundaryLogger . LogError ( exception . ToString ( ) ) ;
22
+ _errorBoundaryLogger . LogError ( exception . ToString ( ) , exception ) ;
25
23
return ValueTask . CompletedTask ;
26
24
}
27
25
}
You can’t perform that action at this time.
0 commit comments