From 319b3b452cd953f1c58d37fcf039d8ea50bf94e5 Mon Sep 17 00:00:00 2001 From: Alvarez <140459501+prestoalvarez@users.noreply.github.com> Date: Wed, 22 Oct 2025 19:01:55 +0200 Subject: [PATCH 1/2] Update SimpleConsoleLogger.cs --- src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs b/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs index c80b2196911e..8e6fa832d097 100644 --- a/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs +++ b/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs @@ -34,7 +34,7 @@ public void Trace(string text) public void Error(string text, Exception ex = null) { - if (IsError) Console.Error.WriteLine(DateTime.Now.ToString(dateFormat) + text); + if (IsError) Console.Error.WriteLine(DateTime.Now.ToString(dateFormat) + text + (ex != null ? " " + ex : string.Empty)); } private void WriteEntry(string text) From 650f05c9f7711302b16c6ba0ef1451b19a3d0b07 Mon Sep 17 00:00:00 2001 From: Lukasz Rozmej Date: Wed, 22 Oct 2025 23:06:14 +0200 Subject: [PATCH 2/2] Update src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs --- src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs b/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs index 8e6fa832d097..6b732fccb1bf 100644 --- a/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs +++ b/src/Nethermind/Nethermind.Logging/SimpleConsoleLogger.cs @@ -34,7 +34,7 @@ public void Trace(string text) public void Error(string text, Exception ex = null) { - if (IsError) Console.Error.WriteLine(DateTime.Now.ToString(dateFormat) + text + (ex != null ? " " + ex : string.Empty)); + if (IsError) Console.Error.WriteLine(DateTime.Now.ToString(dateFormat) + text + (ex is not null ? " " + ex : string.Empty)); } private void WriteEntry(string text)