Update LoggerClient.cs
This commit is contained in:
parent
f1a061edc1
commit
a2ed87f7ce
1 changed files with 6 additions and 1 deletions
|
|
@ -231,7 +231,12 @@ public sealed class LoggerClient : ILogger
|
||||||
if (currentLog.Exception is not null)
|
if (currentLog.Exception is not null)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Console.WriteLine(JsonConvert.SerializeObject(currentLog.Exception, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }));
|
Console.WriteLine(JsonConvert.SerializeObject(currentLog.Exception, Formatting.Indented, new JsonSerializerSettings()
|
||||||
|
{
|
||||||
|
NullValueHandling = NullValueHandling.Ignore,
|
||||||
|
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
|
||||||
|
Error = (serializer, err) => err.ErrorContext.Handled = true
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue