Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
fealebenpae committed Oct 9, 2023
1 parent 1f02fb9 commit 20ae5c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Realm/Realm/Native/SyncSocketProvider.WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

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)
Expand All @@ -207,7 +211,6 @@ private static void FormatExceptionForLogging(Exception ex, StringBuilder builde
{
FormatExceptionForLogging(inner, builder, nesting + 1);
}

}
}

Expand Down

0 comments on commit 20ae5c7

Please sign in to comment.