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 132479b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Realm/Realm/Native/SyncSocketProvider.WebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ 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))
Expand All @@ -194,8 +195,10 @@ private static void FormatExceptionForLogging(Exception ex, StringBuilder builde
{
builder.Append('\t');
}

builder.AppendLine(ex.StackTrace);
}

if (ex is AggregateException aggregateException)
{
foreach (var inner in aggregateException.InnerExceptions)
Expand All @@ -207,7 +210,6 @@ private static void FormatExceptionForLogging(Exception ex, StringBuilder builde
{
FormatExceptionForLogging(inner, builder, nesting + 1);
}

}
}

Expand Down

0 comments on commit 132479b

Please sign in to comment.