From 132479b72f955c6c0e1cfb5cbcf38859039725c8 Mon Sep 17 00:00:00 2001 From: Yavor Georgiev Date: Mon, 9 Oct 2023 15:02:52 +0200 Subject: [PATCH] whitespace --- Realm/Realm/Native/SyncSocketProvider.WebSocket.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Realm/Realm/Native/SyncSocketProvider.WebSocket.cs b/Realm/Realm/Native/SyncSocketProvider.WebSocket.cs index f4cd9e36ce..9bbe5bad3f 100644 --- a/Realm/Realm/Native/SyncSocketProvider.WebSocket.cs +++ b/Realm/Realm/Native/SyncSocketProvider.WebSocket.cs @@ -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)) @@ -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) @@ -207,7 +210,6 @@ private static void FormatExceptionForLogging(Exception ex, StringBuilder builde { FormatExceptionForLogging(inner, builder, nesting + 1); } - } }