-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,16 +186,20 @@ private static void FormatExceptionForLogging(Exception ex, StringBuilder builde | |
{ | ||
builder.Append('\t'); | ||
} | ||
|
||
builder.AppendFormat("{0}: {1}", ex.GetType().FullName, ex.Message); | ||
builder.AppendLine(); | ||
|
||
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Source Generation
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (windows-latest, win-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (ubuntu-latest, linux-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Weaver (macos-latest, osx-x64)
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Package / NuGet
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Package / NuGet
Check warning on line 192 in Realm/Realm/Native/SyncSocketProvider.WebSocket.cs GitHub Actions / Test / Code Coverage
|
||
if (Logger.LogLevel >= LogLevel.Trace && !string.IsNullOrEmpty(ex.StackTrace)) | ||
{ | ||
for (int i = 0; i <= nesting; i++) | ||
{ | ||
builder.Append('\t'); | ||
} | ||
|
||
builder.AppendLine(ex.StackTrace); | ||
} | ||
|
||
if (ex is AggregateException aggregateException) | ||
{ | ||
foreach (var inner in aggregateException.InnerExceptions) | ||
|
@@ -207,7 +211,6 @@ private static void FormatExceptionForLogging(Exception ex, StringBuilder builde | |
{ | ||
FormatExceptionForLogging(inner, builder, nesting + 1); | ||
} | ||
|
||
} | ||
} | ||
|
||
|