From 8e4273ec123e8199448bd113ea63294b48c70856 Mon Sep 17 00:00:00 2001 From: MatthiasSort Date: Wed, 24 Jan 2024 09:02:24 +0100 Subject: [PATCH] Added same msg into the Logger as there is sent to the LogManager. Bump version to 10.0.4 --- src/CSVProvider.cs | 4 +++- src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CSVProvider.cs b/src/CSVProvider.cs index 4417723..d98ebe3 100644 --- a/src/CSVProvider.cs +++ b/src/CSVProvider.cs @@ -580,7 +580,9 @@ public override bool RunJob(Job job) catch (Exception ex) { string msg = ex.Message; - LogManager.System.GetLogger(LogCategory.Application, "Dataintegration").Error($"{GetType().Name} error: {ex.Message} Stack: {ex.StackTrace}", ex); + string stackTrace = ex.StackTrace; + Logger?.Error($"Error: {msg.Replace(System.Environment.NewLine, " ")} Stack: {stackTrace.Replace(System.Environment.NewLine, " ")}", ex); + LogManager.System.GetLogger(LogCategory.Application, "Dataintegration").Error($"{GetType().Name} error: {msg} Stack: {stackTrace}", ex); if (sourceRow != null) msg += GetFailedSourceRowMessage(sourceRow); diff --git a/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj index 88dbdd6..e5219e7 100644 --- a/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj @@ -1,6 +1,6 @@  - 10.0.3 + 10.0.4 1.0.0.0 CSV Provider CSV Provider