From 5f77f12e51577bb32e66b831a30c5eed21a28577 Mon Sep 17 00:00:00 2001 From: Georgii Borovinskikh Date: Mon, 23 Dec 2024 15:11:51 +0100 Subject: [PATCH] SLVS-1735 Change mapping of SLCore INFO logs from verbose to regular --- src/SLCore.Listeners.UnitTests/Logging/LoggerListenerTests.cs | 4 ++-- src/SLCore.Listeners/Implementation/LoggerListener.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SLCore.Listeners.UnitTests/Logging/LoggerListenerTests.cs b/src/SLCore.Listeners.UnitTests/Logging/LoggerListenerTests.cs index dd45816a37..f2c54098bb 100644 --- a/src/SLCore.Listeners.UnitTests/Logging/LoggerListenerTests.cs +++ b/src/SLCore.Listeners.UnitTests/Logging/LoggerListenerTests.cs @@ -42,7 +42,7 @@ public void Mef_CheckIsSingleton() [TestMethod] [DataRow(LogLevel.ERROR, false)] [DataRow(LogLevel.WARN, false)] - [DataRow(LogLevel.INFO, true)] + [DataRow(LogLevel.INFO, false)] [DataRow(LogLevel.TRACE, true)] [DataRow(LogLevel.DEBUG, true)] public void Log_LogInfoTraceAndDebugAsVerbose(LogLevel logLevel, bool verboseLogs) @@ -65,4 +65,4 @@ public void Log_LogInfoTraceAndDebugAsVerbose(LogLevel logLevel, bool verboseLog } } } -} \ No newline at end of file +} diff --git a/src/SLCore.Listeners/Implementation/LoggerListener.cs b/src/SLCore.Listeners/Implementation/LoggerListener.cs index 3cfdffe610..c16827f89d 100644 --- a/src/SLCore.Listeners/Implementation/LoggerListener.cs +++ b/src/SLCore.Listeners/Implementation/LoggerListener.cs @@ -45,10 +45,10 @@ public void Log(LogParams parameters) { case LogLevel.ERROR: case LogLevel.WARN: + case LogLevel.INFO: logger.WriteLine(message); break; - case LogLevel.INFO: case LogLevel.DEBUG: case LogLevel.TRACE: logger.LogVerbose(message);