Skip to content

Commit

Permalink
Added same msg into the Logger as there is sent to the LogManager. Bu…
Browse files Browse the repository at this point in the history
…mp version to 10.0.4
  • Loading branch information
MatthiasSort committed Jan 24, 2024
1 parent 43c8e6b commit 8e4273e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/CSVProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.0.3</Version>
<Version>10.0.4</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>CSV Provider</Title>
<Description>CSV Provider</Description>
Expand Down

0 comments on commit 8e4273e

Please sign in to comment.